From 27635b79ebf3aa921940498e05f425fe0541a39e Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Tue, 12 Sep 2023 08:27:14 -0600 Subject: [PATCH] docs: add inverse containment logic example (#4761) --- docs/language/operators/where.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/language/operators/where.md b/docs/language/operators/where.md index aca8dba1f3..954ae439f8 100644 --- a/docs/language/operators/where.md +++ b/docs/language/operators/where.md @@ -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()' -