DEV Community

pooyaalamdari
pooyaalamdari

Posted on

example if else

if (x)
    if (y) 
        { execute this code }
    else
        {execute this code}
    end
end

# x is true, but y is NOT
Enter fullscreen mode Exit fullscreen mode
if (x)
    if (y) 
        { execute this code }
else
    {execute this code}
    end
end

# x is not true
Enter fullscreen mode Exit fullscreen mode

Top comments (0)