|
OR
Logical
|
Logical OR. The expression is true if either the left or right condition (or both) is true. Used to route based on any one of multiple acceptable responses.
Syntax
syntax
condition1 | condition2
Examples
expressions
Q1=1 | Q1=2 -- chose BrandA or BrandB Q4<18 | Q4>65 -- age is outside the 18–65 range Q1=1 | Q1=2 | Q1=3 -- chose any of the first three options
Use a single | (not ||). The SmartSurvey scripting engine uses single-character logical operators.
| has lower precedence than &. Use parentheses when mixing: (Q1=1 | Q1=2) & Q4>=18