Condition based on variable expression.
If the result is an empty string, a string containing only space or false, the condition will be considered as false.
yaml
type: "io.kestra.plugin.core.condition.Expression"Examples
Trigger condition to execute the flow when the expression evaluates to true.
yaml
id: myflow
namespace: company.team
tasks:
  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: Average value has gone below 10
triggers:
  - id: expression_trigger
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "*/1 * * * *"
    conditions:
      - type: io.kestra.plugin.core.condition.Expression
        expression: "{{ kv('average_value') < 10 }}"
