github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/conditions/bloblang.md (about) 1 --- 2 title: bloblang 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/bloblang.go 12 --> 13 14 import Tabs from '@theme/Tabs'; 15 import TabItem from '@theme/TabItem'; 16 17 18 Executes a [Bloblang](/docs/guides/bloblang/about) query on messages, expecting 19 a boolean result. If the result of the query is true then the condition passes, 20 otherwise it does not. 21 22 ```yaml 23 # Config fields, showing default values 24 bloblang: "" 25 ``` 26 27 ## Examples 28 29 With the following config: 30 31 ``` yaml 32 bloblang: a == "foo" 33 ``` 34 35 A message `{"a":"foo"}` would pass, but 36 `{"a":"bar"}` would not. 37