LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to turn a string into boolean

When I get the response "ok", I want a true, and for any other response/no response I want a false.

0 Kudos
Message 1 of 4
(2,216 Views)

Snap12.png

mcduff

0 Kudos
Message 2 of 4
(2,200 Views)

= "ok".

 

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
Learn LabVIEW

 

Example_VI_BD

0 Kudos
Message 3 of 4
(2,199 Views)

@mshask wrote:

When I get the response "ok", I want a true, and for any other response/no response I want a false.


You already got solutions, but it would really help if you explain what kind of problem you are trying to solve with all this.

 

(Guessing from the question that you are not very familiar with LabVIEW, so you might be barking up the wrong tree. Similar to my comment here, explain the problem, not force certain tools ;))

 

What are you going to do with the boolean? If it is used for code decisions only, you might just wire the string directly to a case structure and make one case "OK" (case insensitive) and the other the default. No boolean needed. 😉

0 Kudos
Message 4 of 4
(2,183 Views)