3dSynth

Docs / SynthBlocks

Open in the interactive docs reader

Compare

Compares two values and returns 1 (true) or 0 (false). Pairs with the Conditional block for clean if/else logic.

Block

Interactive preview is available in the interactive reader.

Parameters

left
Left operand (any numeric expression).
operator
Comparison: >, <, =, ≠, ≥, ≤.
right
Right operand (any numeric expression).

How it works

Compare evaluates both sides and returns 1 if the comparison is true, 0 otherwise. Equality (=) uses epsilon comparison to handle floating-point precision. Plug the result directly into a Conditional block's condition input — non-zero means true.