Skip to content

Condition — Reference

Reference · Advanced · Server Connect

Execute one branch after evaluating a server expression.

Execute one branch after evaluating a server expression.

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

Execute one branch after evaluating a server expression.

Setting Meaning
ConditionEvaluates the expression for truthiness. For example, count > 0 selects Then when the evaluated count is positive. Normalize incoming values before testing booleans: the non-empty string "false" is not the boolean false.
ThenThe nested steps to run when the condition is truthy.
ElseOptional nested steps for a falsy condition. Omitting Else simply skips that branch.

After a query, test whether its result count is greater than zero. Put a Set Value named message with Value Found in Then and Value No records in Else, enabling Output on those Set Value steps. Test with both an empty and a non-empty result.

A Condition does not return a new object containing its branches. Nested steps produce their own named outputs. Only one branch runs for a single evaluation.

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

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