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- |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Checking conditions [IF ... THEN ... ELSE] performance - komame - 09-14-2015, 06:24 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - Joe Horn - 09-14-2015 07:21 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - Tim Wessman - 09-14-2015, 07:36 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - komame - 09-14-2015, 09:01 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - primer - 09-14-2015, 09:24 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - Joe Horn - 09-15-2015, 05:04 AM
RE: Checking conditions [IF ... THEN ... ELSE] performance - roadrunner - 09-14-2015, 10:06 PM
RE: Checking conditions [IF ... THEN ... ELSE] performance - cyrille de brébisson - 09-15-2015, 05:25 AM
RE: Checking conditions [IF ... THEN ... ELSE] performance - StephenG1CMZ - 09-15-2015, 09:42 AM
|
User(s) browsing this thread: 1 Guest(s)