Source
yaml
id: conditional-branching
namespace: company.team
inputs:
- id: parameter
type: STRING
required: false
tasks:
- id: if
type: io.kestra.plugin.core.flow.If
condition: "{{ inputs.parameter ?? false }}"
then:
- id: if_not_null
type: io.kestra.plugin.core.log.Log
message: Received input {{ inputs.parameter }}
else:
- id: if_null
type: io.kestra.plugin.core.log.Log
message: No input provided
About this blueprint
Variables Inputs
This flow takes an optional input parameter. It then executes subsequent tasks based on whether the input was provided or not.
More Related Blueprints