Checking if 2 booleans are both false

Hey all!

I have an easy question, but I’ve been staring at it too long. I’m trying to only execute a piece of code when both booleans are false. Reading the documents I think this is the right way to do it, but could use some more sets of eyes please:

Any thoughts? Thanks!

AND Bool returns true only when both are true, else returns false. That means if one of 2 bools are true and other is false, AND will return false.

NOR return true when both are false.

2 Likes

Adding a NOT node after each boolean and AND-ing them will also return TRUE.

IsShieldUp->NOT--->AND->Branch TRUE-> (both are false)
IsFlashlightOn->NOT-^

So just add a couple NOT nodes on your booleans and use the TRUE pin on your branch node.

Thank you, this is what I was looking for, versus a series of chained conditions. Thank you!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.