Boolean Counter (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
English • ‎日本語 • ‎한국어
Boolean Counter
'Boolean Counter' LogiX node
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.

Logix Example BooleanCounter.png

Node Menu

Math / Binary
Back Adder Boolean Counter Compose Bits Byte Compose Bits Int Compose Bits Long Compose Bits Sbyte
Compose Bits Short Compose Bits Uint Compose Bits Ulong Compose Bits Ushort Double As ULong Extract Bits Byte Extract Bits Int
Extract Bits Long Extract Bits Sbyte Extract Bits Short Extract Bits Uint Extract Bits Ulong Extract Bits UShort Float As UInt
Half As UShort HalfAdder UInt As Float ULong As Double UShort As Half