From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,138 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,132 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,129 Views)