Equal
This node checks if two numbers are strictly equal.
The Equal node performs an equality comparison (===) and routes signals based on the result.
The Equal node compares two numeric inputs. It evaluates whether First Number is strictly equal to Second Number. It provides both a boolean data output and signal outputs for conditional logic flow.
Inputs
Numbers
| Data | Description |
|---|---|
| First Number | The first number to compare. Default: 0. |
| Second Number | The second number to compare. Default: 0. |
Actions
| Signal | Description |
|---|---|
| Do | Triggers the comparison. The logic is only executed when this signal is received. |
Outputs
Data
| Data | Description |
|---|---|
| Result | The boolean result of First Number === Second Number. |
Signals
| Signal | Description |
|---|---|
| True Condition | Triggered if the numbers are equal. |
| False Condition | Triggered if the numbers are not equal. |
| Done | Triggered after the comparison is complete, regardless of the result. |
Usage
Use this node to check for exact numeric matches.
Example Use Cases
- Target Reached: Check if
Current Progress==Target. - State Check: Check if
Current Page Index==2. - Zero Check: Check if
Inventory Count==0(Empty).
Detailed Behavior
- Strict Equality: The node uses the
===operator. - Validation: Inputs must be valid numbers within the ±1 trillion range.
- Signal Flow:
- When
Dois triggered, the node calculates the result. - It updates the
Resultoutput. - It emits either
True ConditionorFalse Condition. - Finally, it emits
Done.
- When
Troubleshooting
- Floating Point Errors: Be careful when comparing floating-point numbers (e.g.,
0.1 + 0.2might not exactly equal0.3in standard computing). For floats, it is often safer to check if the difference is very small (using Subtraction, Abs, and Less Than) rather than strict equality.
Was this page helpful?