Equal
This node compares two numbers for equality.
The Equal node performs strict equality comparison between two numeric values.
The Equal node compares two numbers and returns true if they are exactly equal, false otherwise. It uses strict equality comparison and includes proper handling for floating-point precision.
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 equality comparison and emits True/False condition signals based on the result |
Outputs
Data
| Data | Description |
|---|
| Result | Boolean result of the equality comparison |
Signals
| Signal | Description |
|---|
| True Condition | Emitted when the result is true on Do |
| False Condition | Emitted when the result is false on Do |
| Done | Triggered when the comparison is complete |
Usage
Example Use Cases
- Conditional Logic: Check if values match expected results
- Form Validation: Verify user inputs against requirements
- Game Logic: Check win conditions, score targets, or achievement thresholds
- Data Filtering: Filter datasets based on exact value matches
Examples
| First Number | Second Number | Result |
|---|
| 5 | 5 | true |
| 3.14 | 3.14 | true |
| 10 | 5 | false |
| 0 | 0 | true |
| -1 | 1 | false |