07-08-2015 06:14 PM
Hi everyone, I am using the IF and then ELSE IF statement Flow Control functions that come with Test Stand.
I have a numeric local variable in Test Stand. If this number = 0 or 1, I want it to do code A and else if the number = 2, I want it to run code B.
This is how I have it written in TestStand
IF STATEMENT -> EXPRESSION: Locals.Number == 0 || 1
THEN DO Code A
ELSE IF -> EXPRESSION: Locals.Number == 2
THEN DO Code B
My issue is when Locals.Number = 2 it still runs Code A block. What am I doing wrong?
Thanks so much!
07-08-2015 10:39 PM
Try "(Locals.Number == 0) || (Locals.Number == 1)" instead of "Locals.Number == 0 || 1"
07-09-2015 09:48 AM
That did the job. Thanks jsiegel.