conditional

Executes a set of child processors when a condition passes for a message batch, otherwise a different set of processors are applied.

conditional:
condition:
text:
arg: ""
operator: equals_cs
part: 0
type: text
processors: []
else_processors: []

Conditional is a processor that has a list of child processors, else_processors, and a condition. For each message batch, if the condition passes, the child processors will be applied, otherwise the else_processors are applied.

In order to conditionally process each message of a batch individually use this processor with the for_each processor.

Fields

condition

object The condition to check against messages.

processors

array A list of processors to apply when the condition passes.

else_processors

array A list of processors to apply when the condition does not pass.