Skip to main content

xor

Returns the logical XOR of children conditions, meaning it only resolves to true if exactly one of its children conditions resolves to true.

# Config fields, showing default values
xor: []

Examples​

The following snippet resolves to true if a message matches the resource condition 'foo' or 'bar', but not both:

xor:
- resource: foo
- resource: bar