Syntax
Conditions
Conditions
Conditions in Keep Workflow Engine define logic to evaluate whether a step or action should execute.
They allow workflows to dynamically adapt based on outputs from previous steps, variables, or custom logic.
Using conditions, you can introduce decision-making into workflows by asserting values, thresholds, or specific states.
Use sugar syntax: if
You can simplify the use of conditions by adding an if:
field directly to a step or action. This shorthand internally translates to a conditions
block.
General Structure
Explicit Conditions Block
Supported Condition Types
assert
Checks whether a specific assertion is true.
threshold
Compares a value to a threshold using operators like >
, <
,==
, or !=
.