Forum Discussion

akhaliq7's avatar
akhaliq7
Icon for Post Prodigy rankPost Prodigy
4 years ago
Solved

if statements in the same level

I have two if statements instead of being nested i need them to be in the same level.

 

e.g.

if (expression)

    if(expression),

        0,

       if(expression),

          1,

          0

       if(expression),

          1,

          0

 

  • akhaliq7 , the same level means you use OR ||  or and && in same if  otherwise one will get a higher preference

1 Reply

  • akhaliq7 , the same level means you use OR ||  or and && in same if  otherwise one will get a higher preference