Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6732

TestStand expression: "ghetto" if/else case statement

$
0
0

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.


Viewing all articles
Browse latest Browse all 6732

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>