Skip to content

Commit fe7d572

Browse files
Scoti DodsonScoti Dodson
authored andcommitted
clarifying empty/not empty
1 parent a823e65 commit fe7d572

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

content/concepts/conditions.mdx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -137,25 +137,25 @@ The timestamp operators (`is_timestamp_before`, `is_timestamp_on_or_after`, and
137137

138138
You can use any of the following operators in condition comparisons:
139139

140-
| Operator | Description |
141-
| -------------------------- | ---------------------------------------------------------------------------------------- |
142-
| `equal_to` | `==` |
143-
| `not_equal_to` | `!=` |
144-
| `greater_than` | `>` |
145-
| `greater_than_or_equal_to` | `>=` |
146-
| `less_than` | `<` |
147-
| `less_than_or_equal_to` | `<=` |
148-
| `contains` | Checks whether `argument` is in `variable` (works with strings and lists) |
149-
| `contains_all` | Checks whether all `argument` values are present in `variable` (for comparing lists) |
150-
| `not_contains` | Checks whether `argument` is not in `variable` (works with strings and lists) |
151-
| `not_contains_all` | Checks whether all `argument` values are not present in `variable` (for comparing lists) |
152-
| `empty` | Checks whether `variable` is in `["", null, []]` |
153-
| `not_empty` | Checks whether `variable` is not in `["", null, []]` |
154-
| `exists` | Checks whether `variable` is provided and has a value that is not `null` |
155-
| `not_exists` | Checks whether `variable` is not provided or has a `null` value |
156-
| `is_timestamp_before` | Checks whether `variable` is a timestamp before the `argument` value |
157-
| `is_timestamp_on_or_after` | Checks whether `variable` is a timestamp on or after the `argument` value |
158-
| `is_timestamp_between` | Checks whether `variable` is a timestamp between the `argument`'s start and end values |
140+
| Operator | Description |
141+
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
142+
| `equal_to` | `==` |
143+
| `not_equal_to` | `!=` |
144+
| `greater_than` | `>` |
145+
| `greater_than_or_equal_to` | `>=` |
146+
| `less_than` | `<` |
147+
| `less_than_or_equal_to` | `<=` |
148+
| `contains` | Checks whether `argument` is in `variable` (works with strings and lists) |
149+
| `contains_all` | Checks whether all `argument` values are present in `variable` (for comparing lists) |
150+
| `not_contains` | Checks whether `argument` is not in `variable` (works with strings and lists) |
151+
| `not_contains_all` | Checks whether all `argument` values are not present in `variable` (for comparing lists) |
152+
| `empty` | Checks whether `variable` is in `["", null, []]`. If the variable is not provided at the path, Knock treats it as empty, so this returns true. |
153+
| `not_empty` | Checks whether `variable` is not in `["", null, []]`. If the variable is not provided at the path, Knock treats it as empty, so this returns false. |
154+
| `exists` | Checks whether `variable` is provided and has a value that is not `null` |
155+
| `not_exists` | Checks whether `variable` is not provided or has a `null` value |
156+
| `is_timestamp_before` | Checks whether `variable` is a timestamp before the `argument` value |
157+
| `is_timestamp_on_or_after` | Checks whether `variable` is a timestamp on or after the `argument` value |
158+
| `is_timestamp_between` | Checks whether `variable` is a timestamp between the `argument`'s start and end values |
159159

160160
<Callout
161161
type="info"

0 commit comments

Comments
 (0)