LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you compare strings. I merely wish to see if "three" is equal to "three".

How do you compare strings.  I merely wish to see if "three" is equal to "three".  I am using the Equals function.  I am probing the wires while running.  They appear equal, but the Equals condition is still False.
0 Kudos
Message 1 of 3
(2,245 Views)
The equals function is the correct one but your strings might not really be equal. Turn on Hex display or '\' Code display for both of the string controls (right click on a control to see this option) and see if you might not have some control characters (i.e. CR\LF, space at the end) that are not being shown or difficutl to see in normal mode.
0 Kudos
Message 2 of 3
(2,241 Views)

It sounds like you have a hidden character somewhere that is fouling things up.

Missed it by that much!

Message Edited by centerbolt on 10-25-2007 03:00 PM

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