Skip to content

Commit 48f68af

Browse files
committed
Clarified format of conditions
1 parent b0ead4a commit 48f68af

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/notification-center-pro/message-conditions/_index.de.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ Nun können wir mit `##form_urgent## === 'yes'` eine gesamte Nachricht nur dann
2222

2323
![Screenshot der Bedingung im Backend]({{% asset "/notification-center-pro/images/screenshot_message_condition.png" %}}?classes=shadow)
2424

25+
{{% notice idea %}}
26+
Technisch gesehen brauchst du die `##` nicht, wenn du Bedingungen definierst. Sie werden entfernt, bevor sie ausgewertet werden. Ihre Verwendung
27+
dient nur zu deiner eigenen Benutzerfreundlichkeit, da sie die automatische Vervollständigung aktivieren. Du kannst aber genauso gut direkt `form_urgent === 'yes'` schreiben. Beide
28+
Varianten werden funktionieren. Bedingungen innerhalb des E-Mail-Textes z.B. werden ja auch ohne die `##` geschrieben (z.B. `{if form_urgent === 'yes'}`).
29+
{{% /notice %}}
30+
2531
{{% notice tip %}}
2632
Diese Funktion ist besonders mächtig im Zusammenspiel mit [benutzerdefinierten Tokens]({{< ref "/custom-tokens" >}})!
2733
{{% /notice %}}

docs/notification-center-pro/message-conditions/_index.en.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ Now we can use `##form_urgent## === 'yes'` to send an entire message only if the
2222

2323
![Screenshot of the condition in the back end]({{% asset "/notification-center-pro/images/screenshot_message_condition.png" %}}?classes=shadow)
2424

25+
{{% notice idea %}}
26+
Technically speaking, you don't need the `##` when defining conditions. They are removed before being evaluated. Using them
27+
is only for your own usability as they trigger autocompletion. But you might as well write `form_urgent === 'yes'` directly. Both
28+
variants will work. Conditions within the e-mail text, for example, are also written without the `##` (e.g. `{if form_urgent === 'yes'}`).
29+
{{% /notice %}}
30+
2531
{{% notice tip %}}
2632
This function is particularly powerful in combination with [custom tokens]({{< ref "/custom-tokens" >}})!
2733
{{% /notice %}}

0 commit comments

Comments
 (0)