I am trying to define a variable with the help of the ? conditional expression operator described at http://support.mysurvey.solutions/customer/en/portal/articles/2537453-syntax-guide-operators.
My minimal example is a variable of Long integer variable type defined by the expression
(10 < 2)? 1:4
which I have copied straight from the helpfile, just replacing a and b with 1 and 4. I would have thought this would place the value 4 in the variable (because 10 is not less than 2, so it returns the expression to the right of the colon). But instead I get WB0027 “Expression has a syntax error”. What am I doing wrong?