THIS FUNCTION ALLOWS YOU TO CHECK IF A GIVEN VARIABLE MATCHES A CERTAIN CONDITION

Evaluates a simple boolean condition by comparing a scalar value against a target value using a chosen relational operator (eq, gt, lt, gte, lte). Returns true or false depending on whether the condition is satisfied. Use this worker to drive conditional branching in workflows based on numeric or scalar comparisons.

When to use

Classification: process.

Tagged: boolean, branching, comparison, condition, process, relational, scalar.

Inputs

Label ID Type Default Required Description
Value To Check valuetocheck scalar   The scalar value to be evaluated (left-hand side of the comparison); leave null if the value will be wired in dynamically from an upstream worker.
Operator operator string eq   Relational operator used in the comparison: ‘eq’ (==), ‘gt’ (>), ‘lt’ (<), ‘gte’ (>=), or ‘lte’ (<=); defaults to ‘eq’.
Target Value target_value scalar   The scalar reference value against which ‘Value to Check’ is compared (right-hand side of the comparison); leave null to defer to a runtime-connected value.

Outputs

Label ID Type Description
condition_bool_output_1 condition_bool_output_1 bool Boolean result of the comparison — true if the specified condition holds between the input value and the target value, false otherwise.

Disciplines

  • data.statistics
  • platform.workflow

Auto-generated from transformation schema. Worker id: condition_bool. Schema hash: f402177617ae. Hand-curated docs in workerexamples/ override this page when present.