Sign in to follow this  
Followers 0
Ster

If EXP1 or EXP2

3 posts in this topic

without testing it i was wondering about the if statement's expression evaluation.

if i use: IF Exp1 OR Exp2

does it skip evaluating the second expression if the first was true?

Share this post


Link to post
Share on other sites



yes


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

without testing it i was wondering about the if statement's expression evaluation.

if i use: IF Exp1 OR Exp2

does it skip evaluating the second expression if the first was true?

<{POST_SNAPBACK}>

I had this same question a while back, but I never posted here because you can verify that yourself in about 10 seconds:

If 0 And Msgbox(0,'And','Did not Skip') Then ConsoleWrite('You will never see this')
If 1 Or Msgbox(0,'Or','Did not Skip') Then ConsoleWrite('You will always see this')

Notice you never seen the message boxes...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0