Jump to content

If EXP1 or EXP2


Ster
 Share

Recommended Posts

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...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...