Skip to content

Commit

Permalink
docs: add inverse containment logic example (#4761)
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly authored Sep 12, 2023
1 parent 8f00fa6 commit 27635b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/language/operators/where.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ echo '1 2 3 4' | zq -z 'where this in [1,4]' -
1
4
```
_A filter with inverse containment logic_
```mdtest-command
echo '1 2 3 4' | zq -z 'where ! (this in [1,4])' -
```
=>
```mdtest-output
2
3
```
_Boolean functions may be called_
```mdtest-command
echo '1 "foo" 10.0.0.1' | zq -z 'where is(<int64>)' -
Expand Down

0 comments on commit 27635b7

Please sign in to comment.