CHECK IF A GIVEN VALUE IS IN RANGE¶
Checks whether a given floating-point value falls strictly within a specified [min, max] range, returning 1 if true and 0 otherwise. Use this worker in workflows where a scalar gate or pass/fail condition is needed before branching logic.
When to use¶
Classification: process.
Tagged: comparison, gate, math, pass_fail, process, range_check, scalar.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Value In | value_in | float | 1.0 | ✓ | The floating-point scalar to be tested against the range; defaults to 1.0. |
| Min Value | min_value | float | 1.0 | ✓ | The exclusive lower bound of the range (dimensionless float); the check passes only when value_in is strictly greater than this value, defaults to 1.0. |
| Max Value | max_value | float | 1.0 | ✓ | The exclusive upper bound of the range (dimensionless float); the check passes only when value_in is strictly less than this value, defaults to 1.0. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| math_in_range_output_1 | math_in_range_output_1 | scalar | Integer scalar result of the range test: 1 if value_in is strictly between min_value and max_value (exclusive), 0 otherwise. |
Disciplines¶
- data.statistics
- platform.workflow
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=math_in_range
Auto-generated from transformation schema. Worker id: math_in_range. Schema hash: d4225cd11fa3. Hand-curated docs in workerexamples/ override this page when present.