From 8368b1201042ae6f523542fc36d22373ee762b07 Mon Sep 17 00:00:00 2001 From: Andreas Schantl Date: Mon, 10 Nov 2025 18:47:30 +0100 Subject: [PATCH 1/2] Create docs for overlaps and doesnt_overlap. Move some things to a new array conditions heading --- content/collections/docs/conditions.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/content/collections/docs/conditions.md b/content/collections/docs/conditions.md index 4177cca91..334142d84 100644 --- a/content/collections/docs/conditions.md +++ b/content/collections/docs/conditions.md @@ -210,8 +210,6 @@ The following conditions apply to fields with data stored as strings. | `doesnt_exist` / `is_empty` / `null` | Include if field **doesn't exist**. | | `contains` | Include if field **contains** value. | | `doesnt_contain` | Include if field **doesn't contain** value. | -| `in` | Include if field value is **in** the provided array. | -| `not_in` | Include if field value is **not_in** the provided array. | | `starts_with` | Include if field **starts with** value. | | `doesnt_start_with` | Include if field **doesn't start** with value. | | `ends_with` | Include if field **ends with** value. | @@ -232,6 +230,17 @@ The following conditions apply to fields with data stored as strings. | `is_before` | Include if field **is before** date. | | `is_numberwang` | Include if field **is numberwang**. | +## Array conditions + +The following conditions apply to fields with data stored as an array. + +| Condition | Description | +| :--- | :--- | +| `in` | Include if field value is **in** the provided array. | +| `not_in` | Include if field value is **not_in** the provided array. | +| `overlaps` | Include if any value in a given array is **in** the provided array. | +| `doesnt_overlap` | Include if no value of a given array is **not_in** the provided array. | + ## Taxonomy conditions [Taxonomy](/taxonomies) conditions are a little bit different. They start with `taxonomy:`, followed by the taxonomy name, an optional modifier argument, and finally the term you're seeking. From cce307fe5e9b19ae681d2f3b2499d8560f3aaaea Mon Sep 17 00:00:00 2001 From: Andreas Schantl Date: Mon, 10 Nov 2025 18:57:18 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Paraphrase=20and=20move=20the=20not=20and?= =?UTF-8?q?=20not=20in=20back=20up=20to=20strings=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/collections/docs/conditions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/collections/docs/conditions.md b/content/collections/docs/conditions.md index 334142d84..0999b6fba 100644 --- a/content/collections/docs/conditions.md +++ b/content/collections/docs/conditions.md @@ -210,6 +210,8 @@ The following conditions apply to fields with data stored as strings. | `doesnt_exist` / `is_empty` / `null` | Include if field **doesn't exist**. | | `contains` | Include if field **contains** value. | | `doesnt_contain` | Include if field **doesn't contain** value. | +| `in` | Include if field value is **in** the provided array. | +| `not_in` | Include if field value is **not in** the provided array. | | `starts_with` | Include if field **starts with** value. | | `doesnt_start_with` | Include if field **doesn't start** with value. | | `ends_with` | Include if field **ends with** value. | @@ -236,10 +238,8 @@ The following conditions apply to fields with data stored as an array. | Condition | Description | | :--- | :--- | -| `in` | Include if field value is **in** the provided array. | -| `not_in` | Include if field value is **not_in** the provided array. | -| `overlaps` | Include if any value in a given array is **in** the provided array. | -| `doesnt_overlap` | Include if no value of a given array is **not_in** the provided array. | +| `overlaps` | Include if any field value **matches** the provided array (has). | +| `doesnt_overlap` | Include if **no** value **matches** the provided array (has not). | ## Taxonomy conditions