Boolean Counter (LogiX node)
Jump to navigation
Jump to search
Boolean Counter | ||
---|---|---|
Inputs | ||
Bool | [0] | |
Bool | [1] | |
Outputs | ||
Int | TrueCount | |
Int | FalseCount | |
Int | TotalCount |
The Boolean Counter node counts the number of true/false values among the input boolean values, as well as the total number of boolean values itself.
Usage
This node takes any number of boolean inputs and outputs three integers.
The first output is how many true
values are used as input. The second output is how many false
values are used as input. The third output is how many total inputs there are.
Examples
The following image showcases the four inputs false
true
, false
, and false
outputting the three integers 1
, 3
, and 4
.