Conditions
Attach a condition to any step or action to decide at runtime whether it should run. A condition is a mustache expression that can reference outputs from earlier steps, workflow variables, or any other data in the execution context.
Using conditions, you can introduce decision-making into workflows by asserting values, thresholds, or specific states.
Simple if condition
Values of variables will be quoted when evaluated. For example, if
alert.cpu_load is 70, it will resolve to '70' (number quoted with single
quotes).
Using results of other steps in condition
Complex logic
Condition with foreach
Condition with constants
Explicit condition blocks (deprecated)
Explicit condition blocks are deprecated and will be discontinued. Use the
if syntax instead.
assert (deprecated)
Checks whether a specific assertion is true.
threshold (deprecated)
Compares a value to a threshold using operators like > (gt) and < (lt), defaults to > (gt).