LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Good Ol' Boolean Logic Question

Solved!
Go to solution

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
(2,122 Views)
Solution
Accepted by topic author 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)

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

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
(2,113 Views)