Compare
Compares two numbers and outputs true or false.
Output: boolean
Inputs
| Handle | Type | Meaning |
|---|---|---|
| a | number | left side |
| b | number | right side |
Unwired inputs use the card values.
Parameters
| Parameter | Default | Options |
|---|---|---|
| op | gt | gt (>), lt (<), eq (=), gte (≥), lte (≤), neq (≠) |
| a, b | 0, 0 | fallback fields on the card |
Practical example
Reveal a prize after five clicks:
- Wire an On Click node into a Counter (see those pages for the click setup).
- Add a Compare (op
gte, b = 5); wire Counter → a. - Add a Visibility node and an Object Selector targeting the prize object.
- Wire Compare → Visibility's on input, and Visibility → Object Selector: the prize pops in on the fifth click — for everyone.
Tip
A boolean feeds numeric inputs as 0/1, so a Compare can also gate a speed: wire it into a Select node's index to jump between two values.