Skip to main content

conditional

DEPRECATED

This component is deprecated and will be removed in the next major version release. Please consider moving onto alternative components.

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

# Config fields, showing default values
label: ""
conditional:
condition:
type: text
text:
arg: ""
operator: equals_cs
part: 0
processors: []
else_processors: []

Alternatives​

All functionality of this processor has been superseded by the switch processor.

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​

The condition to check against messages.

Type: condition

processors​

A list of processors to apply when the condition passes.

Type: array
Default: []

else_processors​

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

Type: array
Default: []