Post Reply 
Checking conditions [IF ... THEN ... ELSE] performance
09-14-2015, 07:21 PM
Post: #2
RE: Checking conditions [IF ... THEN ... ELSE] performance
I verified your observation for both the infix AND operator, and the prefix and() function. All 4 of the following lines return the correct answer, but they all take 5 seconds to execute. The WAIT command in the second pair of lines should not be executed, but it is.

IF 1==1 AND WAIT(5)==5 THEN "True" ELSE "False" END --> "True"
IF and(1==1,WAIT(5)==5) THEN "True" ELSE "False" END --> "True"

IF 1==2 AND WAIT(5)==5 THEN "True" ELSE "False" END --> "False"
IF and(1==2,WAIT(5)==5) THEN "True" ELSE "False" END --> "False"

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Checking conditions [IF ... THEN ... ELSE] performance - Joe Horn - 09-14-2015 07:21 PM



User(s) browsing this thread: 1 Guest(s)