Select — Reference
Run the first matching case for one evaluated expression.
Run the first matching case for one evaluated expression.
Before you begin
Section titled “Before you begin”- An open Server Connect action. Runtime differences below refer to the installed Node.js and PHP implementations.
Select
Section titled “Select”Run the first matching case for one evaluated expression.
Settings and execution
Section titled “Settings and execution”| Setting | Meaning |
|---|---|
| Expression | The value to compare with each case. For example, a validated status string can be matched against draft or published. |
| Case | An ordered list of values and their nested execution steps. The first match runs and ends the case search. No matching case means no case steps execute. |
Worked example
Section titled “Worked example”Use a status expression with cases draft and published. Put a different output message in each case and run the action with both values and an unmatched value. If you need fallback behavior, add a separate explicit condition rather than assuming an implicit default case.
Check the behavior and limits
Section titled “Check the behavior and limits”Match value types deliberately. Node.js uses strict equality. The installed PHP implementation compares numeric values as numbers, coerces comparisons involving booleans, and otherwise compares strictly. Do not rely on implicit cross-type matches when changing server models.
Continue with a task
Section titled “Continue with a task”Use the Server Connect guides when you need the surrounding project, data-loading or form procedure.
Check your result
Section titled “Check your result”You can configure Select deliberately and verify the result and failure behavior described in this reference.