github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/conditions/and.md (about) 1 --- 2 title: and 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/and.go 12 --> 13 14 import Tabs from '@theme/Tabs'; 15 import TabItem from '@theme/TabItem'; 16 17 18 And is a condition that returns the logical AND of its children conditions. 19 20 ```yaml 21 # Config fields, showing default values 22 and: [] 23 ``` 24 25 For example, the following resolves true if a message contains both 'foo' and 26 'bar': 27 28 ```yaml 29 and: 30 - text: 31 operator: contains 32 arg: foo 33 - text: 34 operator: contains 35 arg: bar 36 ``` 37 38