Skip to content

If Statement ​

Evaluates one or more conditions and routes the workflow through either the True or False path based on the result.

Purpose ​

Use the If Statement to introduce conditional branching into a workflow. Configure one or more conditions using a type-aware condition builder, combine them with AND or OR logic, and the task will direct execution down the matching path. It is the primary tool for decisions that have exactly two outcomes.

Inputs ​

FieldTypeRequiredDescription
OperationDropdownNoLogical operator applied across all conditions. AND requires every condition to pass; OR requires at least one. Defaults to AND.
ConditionsSearch Condition BuilderNoOne or more conditions to evaluate. Each condition specifies a data type, an input value, an operator, and a comparison value. Supported types: string, number, dateTime, boolean, object, regex, array.

Outputs ​

This task controls workflow routing and does not produce data output variables. It directs execution through one of two named connector paths:

ConnectorDescription
TrueFollowed when all conditions pass (AND) or at least one passes (OR).
FalseFollowed when the conditions are not satisfied.

Examples ​

AND – All conditions must be met

Check if two variables both equal specific values.

FieldValue
OperationAND
Condition 1 TypeString
Condition 1 InputSetVariable1.var1
Condition 1 OperatorEquals
Condition 1 Compareabc
Condition 2 TypeString
Condition 2 InputSetVariable2.var2
Condition 2 OperatorEquals
Condition 2 Comparecba
OR – At least one condition must be met

Route to True if either variable matches its expected value.

FieldValue
OperationOR
Condition 1 TypeNumber
Condition 1 InputMathOperations1.Result
Condition 1 OperatorGreaterThan
Condition 1 Compare10
Condition 2 TypeString
Condition 2 InputSetVariable1.status
Condition 2 OperatorEquals
Condition 2 Compareapproved

Tentech