Float Condition¶
Evaluates a comparison between two floating-point numbers and returns a boolean result. Supports equality, inequality, and standard relational operators. If an unknown operation is selected or an error occurs during evaluation, the node returns False.

Usage¶
Use this node when you need to compare two float values and drive conditional logic based on the result. Typical use cases include gating execution paths, enabling/disabling features based on thresholds, or validating numeric conditions before proceeding in a workflow.
Inputs¶
| Field | Required | Type | Description | Example |
|---|---|---|---|---|
| a | True | FLOAT | First float operand for the comparison. | 3.14 |
| b | True | FLOAT | Second float operand for the comparison. | 2.718 |
| operation | True | STRING (choice) | The comparison operator to apply between a and b. One of: ==, !=, <, >, <=, >= | > |
Outputs¶
| Field | Type | Description | Example |
|---|---|---|---|
| result | BOOLEAN | The boolean outcome of the selected comparison between a and b. | True |
Important Notes¶
- Floating-point equality is exact: The '==' operation uses exact comparison; consider precision issues when comparing computed floats.
- Value range and step: Inputs accept values from -999999999999.0 to 999999999999.0 with a step of 1.0.
- Error handling: Unknown operations or runtime errors cause the node to return False and log a warning.
- NaN behavior: If a or b is NaN, typical comparison semantics apply (e.g., a == b is False, a != b is True).
Troubleshooting¶
- Unexpected False with '==': Due to floating-point precision, exact equality may fail. Use '<=' and '>=' around a tolerance band or pre-round values.
- Result always False: Check that 'operation' is one of the supported options (==, !=, <, >, <=, >=).
- Values out of range: Ensure a and b are within the accepted range; out-of-range values may be clamped or rejected by the UI.
- Comparisons with NaN: If inputs may be NaN, prefer '!=' or validate/sanitize inputs before comparison.