Conditional action
Each action can be triggered by a when clause which defines an expression that must be evaluated to True to trigger the Action. This is the way to define "conditional actions".
Example:
- setvar:
variable: xyz
expression: "10 * delay"
when: "delay > 2"
The when clause expression syntax is documented here.