Skip to content

Select — Reference

Reference · Advanced · Server Connect

Run the first matching case for one evaluated expression.

Run the first matching case for one evaluated expression.

  • An open Server Connect action. Runtime differences below refer to the installed Node.js and PHP implementations.

Run the first matching case for one evaluated expression.

Setting Meaning
ExpressionThe value to compare with each case. For example, a validated status string can be matched against draft or published.
CaseAn 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.

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.

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.

Use the Server Connect guides when you need the surrounding project, data-loading or form procedure.

You can configure Select deliberately and verify the result and failure behavior described in this reference.