xor

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

xor: []

Examples

The following snippet resolves to true if a message contains 'foo' or 'bar', but not both:

xor:
- text:
operator: contains
arg: foo
- text:
operator: contains
arg: bar