Skip to content

Commit 64eb7ca

Browse files
committed
docs: eq directive
1 parent ec930d3 commit 64eb7ca

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/guide/intro/extensions.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,20 @@ $if:
149149

150150
The `$if` directive is straightforward, see the example.
151151

152+
## The `$eq` Directive
153+
154+
Checks if two values are equal (using deep equality).
155+
156+
```yaml
157+
$if:
158+
$check:
159+
$eq:
160+
- 42
161+
- 42
162+
$then: foo
163+
$else: bar
164+
```
165+
152166
## The `$timestamp` Directive
153167

154168
Allows injecting the current date and time into configuration. While this option is useful,

0 commit comments

Comments
 (0)