Hi I'm wondering how I can construct an IF statement so that it is true if it equals one of two values given. For example
I thought this would work but its obviously not evaluating what I would expect it to. Obviously I know I could put :
If ( a = 6 ) or ( a = 8 )
but I just wanted to make my code a little more readable as I have quite a few long if statements that are a little difficult to digest. Is this possible?
thanks
Local a:Int =8 DebugStop If a = ( 6 Or 8 ) Print "A is 6 or 8" EndIf
I thought this would work but its obviously not evaluating what I would expect it to. Obviously I know I could put :
If ( a = 6 ) or ( a = 8 )
but I just wanted to make my code a little more readable as I have quite a few long if statements that are a little difficult to digest. Is this possible?
thanks