LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wildcard value in case statement

Hi,
 How would I use a wildcard value in my case statement. I evaluate a string value of numbers and try to do this "1234***" but it doesn't work. "***" represents any 3 number. 
Please advise.
Thanks
dphan128
0 Kudos
Message 1 of 4
(4,170 Views)
You can use a range of values: 1234000..1234999. A case can also be set as Default, but I do not think that is what you want.

Lynn
Message 2 of 4
(4,168 Views)
You could mark one of the cases as "Default", and that case will execute when no others match. If you want to explicitly run that case only if the first 4 numbers are "1234", then you need to pre-process the string.

See here for the same exact question.
Message 3 of 4
(4,166 Views)

Thank you all, I think I'll pre-process the string before evaluate as you suggested.

dphan128

0 Kudos
Message 4 of 4
(4,130 Views)