From 2bd1cb7562f092fa31bb3ea0b6a9512bd1cadae4 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Mon, 25 Mar 2024 15:26:49 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20operators=20documentation=20f?= =?UTF-8?q?or=20response=20field=20components.=20(#1387)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/docs/editor/blocks/logic/condition.mdx | 59 +++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/apps/docs/editor/blocks/logic/condition.mdx b/apps/docs/editor/blocks/logic/condition.mdx index d8e1b5d11..443e9ece0 100644 --- a/apps/docs/editor/blocks/logic/condition.mdx +++ b/apps/docs/editor/blocks/logic/condition.mdx @@ -18,3 +18,62 @@ A condition can contain different comparisons that are evaluated in order and li className="absolute top-0 left-0 w-full h-full" /> + +## Operators + + + Will match if the provided value is strictly equal to the value. + + + + Will match if the provided value is not equal to the value. + + + + Will match if the provided value contains the value. If a list is provided, it + will match if the list has at least one element in common with the value. + + + + Same as `Contains` but will match the inverse. + + + + Will match if the provided value is greater or equal than the value. + + + + Will match if the provided value is less or equal than the value. + + + + Will match if the provided value is not null or undefined and not an empty + string. + + + + Will match if the provided value is null, undefined, or an empty string. + + + + Will match if the provided value starts with the value. + + + + Will match if the provided value ends with the value. + + + +Value should start and end with `/` and contain a valid regex pattern. + +Example: + +- `/^hello$/` will match if the string is strictly equal to "hello". +- `/hello/` will match if the string contains "hello". Like "hello world". + + + + + Same as `Matches regex` but will match if the provided value does not match + the regex pattern. +