NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

If Else function

Can i use If function to perform a task if the condition is equal to x or x or x value.

A VI generates a random number between 1 and 10. The result is stored in a variable in TestSTAND called number.

How do i create the If expression to perform simple task if the number equals 9 or 8 or 7.

I tried: FileGLobals.number==9 || 8 || 7

 

but this did not work.

Is it possible to create such an expression?

0 Kudos
Message 1 of 2
(3,088 Views)

think this solved problem

(FileGlobals.number == 9) || (FileGlobals.number == 😎

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