THIS FUNCTION ALLOWS YOU TO CHECK IF A GIVEN VARIABLE IS A SCALAR¶
Checks whether a given input variable is a scalar value and returns one of two configurable string results based on the outcome. Use this worker in workflow branching logic where downstream behavior depends on whether a value is scalar or not.
When to use¶
Classification: process.
Tagged: branching, condition, control_flow, process, scalar, type_check.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Value To Check | valuetocheck | scalar | — | The variable to evaluate; connect any upstream output here to test whether it is a scalar (single numeric or string value). | |
| Value If True | valueiftrue | string | — | String value to return as output when the checked variable is confirmed to be a scalar; defaults to null if left unset. | |
| Value If False | valueiffalse | string | — | String value to return as output when the checked variable is not a scalar (e.g. array, object, or null); defaults to null if left unset. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| condition_ifscalar_output_1 | condition_ifscalar_output_1 | scalar | Returns the ‘Value if true’ string when the input is a scalar, or the ‘Value if false’ string otherwise; type is scalar. |
Disciplines¶
- platform.workflow
Auto-generated from transformation schema. Worker id: condition_ifscalar. Schema hash: c86f220b71d8. Hand-curated docs in workerexamples/ override this page when present.