ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using case sequence

Hi,
Is there a way to use the same case for two different value ?
case1  : 2 or 8
case 2 : Default
 
 
in C :
if (x==2 || x===8 )
{
}
else
{
}
0 Kudos
Message 1 of 3
(2,954 Views)
Yes, that's no problem. You can set special values (2,5,7 -> commaseparated), and you can also set ranges (5..10). You can also set open ranges (10..) which means all values >= 10.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 3
(2,952 Views)
Hi,
Thanks
0 Kudos
Message 3 of 3
(2,947 Views)