github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/conditions/any.md (about)

     1  ---
     2  title: any
     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/any.go
    12  -->
    13  
    14  import Tabs from '@theme/Tabs';
    15  import TabItem from '@theme/TabItem';
    16  
    17  
    18  A condition that tests a child condition against each message of a batch
    19  individually. If any message passes the child condition then this condition also
    20  passes.
    21  
    22  ```yaml
    23  # Config fields, showing default values
    24  any: {}
    25  ```
    26  
    27  For example, if we wanted to check that at least one message of a batch contains
    28  the word 'foo' we could use this config:
    29  
    30  ``` yaml
    31  any:
    32    text:
    33      operator: contains
    34      arg: foo
    35  ```
    36  
    37