If
Branch tasks based on a rendered condition.
If
Branch tasks based on a rendered condition.
yaml
type: io.kestra.plugin.core.flow.IfExamples
yaml
id: if
namespace: company.team
inputs:
- id: string
type: STRING
required: true
tasks:
- id: if
type: io.kestra.plugin.core.flow.If
condition: "{{ inputs.string == 'Condition' }}"
then:
- id: when_true
type: io.kestra.plugin.core.log.Log
message: "Condition was true"
else:
- id: when_false
type: io.kestra.plugin.core.log.Log
message: "Condition was false"
Properties
then *RequiredNon-dynamicarray
Min items
1