LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Good Ol' Boolean Logic Question

Solved!
Go to solution
Highlighted

These are like riddles to me!

 

I want "if x is false and y is true return true. Otherwise, return false."

 

Here is what I came up with.

 

 

Is there a better way?

 

0 Kudos
Message 1 of 3
(595 Views)
Highlighted
Solution
Accepted by GregFreeman

You can use a compound node and invert the appropriate inputs and output. (See also).

 

(If the output is just wired to a case structure, you could simply flip the content of the two cases and skip the invert)


LabVIEW Champion. It all comes together in GCentral GCentral
0 Kudos
Message 2 of 3
(589 Views)
Highlighted

It's actually going to a boolean to number function then to a ring control, but this is what I was looking for. Thanks.

0 Kudos
Message 3 of 3
(586 Views)