But the “AND” node is what? If both bools are the same value? What if I wan’t to check If bool1 = false and bool2 = true, as in my example. Or, if Bool1 = true and Bool2 = true? Is there any indicator as if you want both values to be true or false? I couldn’t find the documentation with particular case.
There are quite a few basic bool operations (as you have them in microcontrollers and stuff like that).
AND will return true if both are true. OR will return true if one of the inputs is true. XOR will return true if neither of the inputs is true or both are but not if only one of them is true and a few more.
If you want to check if one is true and one is false use a NOT node. That basically just switches the input from true to false and the other way around so you can use it for checks.
Then use a NOT node inbetween the bool1 and the AND.
You could not find it in the documentation, because the documentation that EPIC has written for UE4 is basically non-existent.
Thank you for all the information. I definitely have enough to tackle any future bool encounters. Also, I am just learning of the XOR operation. I’ve never used it in my coding experience but that’s likely because I never knew it existed. Being self taught is rough on occasion; which makes me very thankful for your help!
It’s hard to imagine what kind of coding experience never took advantage of boolean operations, it’s about as basic and fundamental as it gets. Good luck for the future
What is funny, that is how I understand quite a bit of C++, I just try and reference it and attempt to recreate the situation I’m trying to fix/solve in Minecraft. It’s also how I design my maps…