logo SmartSurvey / Scripting Docs
Back to Docs
Operator
= Equal Comparison
=
Symbol =
Category Comparison
Precedence 3

Tests whether a response value exactly equals a given value. For *SR questions this checks the selected option code. For *MR questions it checks whether a specific option was selected (not exclusively).

Syntax
syntax
Qx = value
Examples
expressions
Q1=2               -- selected option 2
Q4=25              -- numeric age is exactly 25
Q2=1               -- option 1 was selected (may have others too)
For *MR questions, Q2=1 means option 1 was among the selections — not that it was the only selection.
Related