A question about "And" and "Or"


#1

So, I’ve been developing a game recently, and I am stuck on something. How can I use multiple “and” and “or” in an *if statement? For example, instead of making this:
*if (x) and (y)
–*if z
----*goto Next
–*else
----*goto Next2
*else
–*goto Next2

I would like making this, as it’s far less time consuming (I have lots of those in my game):

*if (x) and (y) and (z)
–*goto Next
*else
–*goto Next2

If anyone knows how to do this, that is, if it is possible to, tell me, I really need it.


#2

*if ((x) and (y)) and (z)

*if ((a) and (b)) or (© and (d))

Basically, you just need to put an extra set of parenthesis around each pair of conditions, as with both of the examples above. “Or” works the same way, but when you have multiple conditions like that, and a mixture of “and” & “or” on the same line, just be careful that your logic makes sense–the more intricate you make the condition, the more likely you are to leave holes in it (or more likely, make it virtually impossible to ever meet all the conditions).


#3

@Vendetta, I see, thanks for the help!