logo SmartSurvey / Scripting Docs
Back to Docs
Operator
> Greater Than Comparison
>
Symbol >
Category Comparison
Precedence 3

Tests whether a response value is strictly greater than a given number. Applies to numeric questions, option codes, and function return values.

Syntax
syntax
Qx > value
Examples
expressions
Q4>18              -- age is greater than 18 (i.e. 19+)
lengthof[Q3]>0     -- at least one character entered
sumof[Q13]>5000    -- total spend exceeds 5000
Use >= if you want to include the boundary value (e.g. Q4>=18 for age 18 and above).
Related