NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Testing if element in array to set numerical limit

Solved!
Go to solution

I would like to test whether a station global string is a member of a station global string array. If it is, I would like to use a special numerical limit, and if not use the normal limit.

 

Is there a preferred way to do that? Thanks.

 

StephenB

0 Kudos
Message 1 of 2
(3,963 Views)
Solution
Accepted by topic author stephenb2

Well, I learned about conditional statements today. (Great explanation here.) I can put this expression in for the low and high limits.

 

( Contains( StationGlobals.MyStringArray, searchstring,False)) ? LimitTrue : LimitFalse

 StephenB

0 Kudos
Message 2 of 2
(3,952 Views)