Set Branch to true when x out of y conditions are met

If you get your boolean and drag out a pin from it, you’ll be able to convert it to an integer by typing ToInt. Convert all your booleans to integers, and then add them together. You can then check if this number is above 4 using a branch.

Hope this helps :slight_smile:

You are not adding the integers together. Replace the “&”-Node with a “+”.

Hey all!

I have 10 booleans that I check with a Branch node.
I need the Branch to execute as True when 4 out of 10 booleans are true. It does not matter which booleans are true, as long as there are 4.
When using the AND node, I can only connect specific booleans, which is not what I’m looking for.

Anyone know how to do this?

I tried your solution, but I think I might have done something wrong… because it’s not firing True.
Could you maybe see what I did wrong?

Perfect, thank you!