NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

convert string to boolean

RunState.Sequence.Main["Message Popup"].Result.Response  how to convert this output data to boolean.I nned to assign this variable data to Locals.Boolean.

0 Kudos
Message 1 of 2
(5,467 Views)

Locals.Boolean = (RunState.Sequence.Main["Message Popup"].Result.Response == "MyExpectedTrueValue")

 

 

 

Replace MyExpectedTrueValue with the string you want the bool to be true for. You might want to transform the Result.Response value with some of the string functions if you need to ignore case, for example.

0 Kudos
Message 2 of 2
(5,461 Views)