Order of if statement testing

Everything else that doesn't fall into one of the other PB categories.
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Order of if statement testing

Post by Edwin Knoppert »

It's important to me to know if a 2nd if test is executed while the first was already false like:

If a=10 And b>=10 Or c=20

Are b and/or c still tested while a = 11 ?

b will in my code an api.

If currently not tested, will this remain in the future?
GreenGiant
Enthusiast
Enthusiast
Posts: 252
Joined: Fri Feb 20, 2004 5:43 pm

Post by GreenGiant »

Don't know whether it'll stay the same, but this code should give you an answer

Code: Select all

If temp=1 And MessageRequester("Test","This was executed",1)  
EndIf
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post by Pupil »

Post Reply