valueof[Qx.n]
Value
Returns the numeric response value at a specific position within a grid, ranking, or list-numeric question. The index n refers to the row or item code (1-based).
Parameters
| Parameter | Type | Description |
|---|---|---|
Qx |
Question ref | *GRIDSR, *GRIDMR, *RANK, or list numeric question |
n |
Integer | Row or item code (1-based) |
Returns: Number — the response value at position n in Qx
Examples
expressions
valueof[Q7.1]>=4 -- row 1 rated 4 or 5 valueof[Q5.1]=1 -- item 1 was ranked first valueof[Q13.2]>=500 -- second numeric entry is 500 or above valueof[Q32.1]>=9 -- NPS row 1 is promoter (9 or 10)
For single *NUMBER or *SR questions use Q4 or Q1 directly. valueof[Qx.n] is for multi-entry types.
The separator between question ref and index must be a dot (.), not a comma.