NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand expression: "ghetto" if/else case statement

Locals.myString = (
(Locals.case == 0)?("test0"):
(Locals.case == 1)?("test1"):
(Locals.case == 2)?("test2"):
(Locals.case == 3)?("test3"):
(Locals.case == 4)?("test4"):
(Locals.case == 5)?("test5"):
"")

 

 

example above is iteration of a step within a for-loop

 

I can't seem to find other examples and hopefully this is a good starting point if you need something within an expression requiring if/else (case) logic.

0 Kudos
Message 1 of 1
(194 Views)