github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/conditions/xor.md (about) 1 --- 2 title: xor 3 type: condition 4 status: stable 5 --- 6 7 <!-- 8 THIS FILE IS AUTOGENERATED! 9 10 To make changes please edit the contents of: 11 lib/condition/xor.go 12 --> 13 14 import Tabs from '@theme/Tabs'; 15 import TabItem from '@theme/TabItem'; 16 17 18 Returns the logical XOR of children conditions, meaning it only resolves to 19 true if _exactly_ one of its children conditions resolves to true. 20 21 ```yaml 22 # Config fields, showing default values 23 xor: [] 24 ``` 25 26 ## Examples 27 28 The following snippet resolves to true if a message matches the resource 29 condition 'foo' or 'bar', but not both: 30 31 ``` yaml 32 xor: 33 - resource: foo 34 - resource: bar 35 ``` 36