KungFuBrad
(KungFuBrad)
January 26, 2025, 8:25pm
1
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!
Shunitzo
(Shunitzo)
January 26, 2025, 8:36pm
2
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.
pezzott1
(pezzott1)
January 26, 2025, 8:39pm
3
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.
KungFuBrad
(KungFuBrad)
January 26, 2025, 9:36pm
5
Thank you, this is what I was looking for, versus a series of chained conditions. Thank you!
1 Like
system
(system)
Closed
February 25, 2025, 9:36pm
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.