Skip to content

Boolean

The Boolean operation folds one or more Boolean inputs with a logical operator — AND, OR, XOR, NAND, NOR, or XNOR — and writes the Boolean result to a single output.

With a single input, AND / OR / XOR pass the value through and NAND / NOR / XNOR invert it. To render the Boolean result as an Integer (1/0) or a labelled String ("on"/"off", "Yes"/"No"), chain a Convert node downstream.

With AND, OR or XOR and exactly one Data input connected, the result is that input unchanged, and the Editor shows an info badge on the Node saying so; NAND, NOR and XNOR invert a single input and carry no such note. An unconnected Data port is the Task Compiler’s mandatory-input error instead.

Boolean operation

Inputs

PortTypeRequiredDescription
> (Gate)AnyNoWhen connected, a false or Nil value stops the path. See Gate Inputs.
DataBooleanYes (first port)Boolean operand. Up to 20 Data ports total — the first is mandatory, the rest are added on demand in the Node’s Settings tab.

Outputs

PortTypeDefaultDescription
OutBooleanNilFold result.

Properties

NameTypeDefaultDescription
Operation TypeComboANDLogical operation: AND, OR, XOR, NAND, NOR, XNOR.

State on Reload

Output is preserved across restarts within the configured time window.


All operations are commutative and defined uniformly over any number of connected Data ports:

OperationN-ary meaningSingle-input result
ANDtrue iff every connected input is truepasses input through
ORtrue iff any connected input is truepasses input through
XORtrue iff an odd number of connected inputs are true (parity)passes input through
NAND!ANDinverts the input (free NOT gate)
NOR!ORinverts the input
XNOR!XOR — true iff an even number of connected inputs are trueinverts the input

Unconnected Data ports are skipped by the fold — you can declare up to 20 ports and connect only the ones you need.


  1. Gate check — If a Gate input is connected, evaluate it. A false or Nil value stops the execution path; the output keeps its previous value.

  2. Type-mask check (Runner) — Every connected Data input is checked against the Boolean type mask. A non-Boolean value fails the Node with a TypeMismatch reason before the operation runs; the Node’s On Error verb resolves the failure, and under the default verb the branch stops.

  3. Fold — Collect the values of every connected Data input and apply the selected operation.

  4. Emit — The Boolean result is written to Out.


Operation Type: AND

InputValue
Data (1)true
Data (2)true

Output: true


  • Combining many boolean flags into a single decision with one node instead of a chain.
  • Parity checks (XOR / XNOR across N signals).
  • Inverting a boolean with a single-input NAND / NOR / XNOR.
  • For numeric / labelled-String rendering of the fold result, chain a Convert node.

  • Every connected Data input must be Boolean. A non-Boolean value fails the Node at the runtime type check, and the Node’s On Error verb resolves the failure.
  • XNOR is defined as !XOR (even-parity convention), not as “all inputs equal”. For N ≥ 3 the two definitions differ — for example XNOR(true, true, true) is false, not true.
  • Maximum fan-in is 20 Data ports.