diff --git a/power-pages-docs/configure/liquid/control-flow-tags.md b/power-pages-docs/configure/liquid/control-flow-tags.md index e439347c8..85c9bbeac 100644 --- a/power-pages-docs/configure/liquid/control-flow-tags.md +++ b/power-pages-docs/configure/liquid/control-flow-tags.md @@ -63,7 +63,8 @@ Hello, stranger. ## case/when -A switch statement to compare a variable to different values, and execute a different block of code for each value. +A switch statement to compare a variable to different values, and execute a different block of code for each value.
+A **when** tag can accept multiple values. When multiple values are provided, the expression is returned when the variable matches any of the values inside of the tag. Provide the values as a comma-separated list, or separate them using an or operator. ``` {% case user.fullname %} @@ -76,6 +77,10 @@ Hello, Dave. Hello, Mr. Smith. +{% when 'Alice Johnson' or 'Bob Johnson' %} + +Hello, Johnson family member. + {% else %} Hello, stranger.