NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

AND expression in an IF condition

Hi guys,

 

 

How to use an AND expression in an IF condition?

 

I tried "foo1 != true AND foo2 != true" or "foo1 != true & foo2 != true". But this gives an expression error.

0 Kudos
Message 1 of 3
(3,032 Views)

Hi,

 

You need to use && (similar to C/C++)

 

You would use AND if you what to AND two value together.

 

Check out the TestStand Help for more information.

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,027 Views)

TestStand also has parameterized version of the AND and OR operations - AllOf() and AnyOf(), respectively.

0 Kudos
Message 3 of 3
(3,012 Views)