This compiler error will occur if the expression that follows an if reserved word is not a Boolean expression.
The examples below would cause this error to occur:
if n_TokenDate // integer !!!
endif
if EvalToken(n_TokenDate, 'm') // string !!!
endif
Note, however, that what follows the reserved word while can be a complex expression, as long as its result is Boolean.
if EvalToken(nCurDate,'[m]') == '1'
sRESULT = 'January'
endif
In the above example, the value of sRESULT is set to 'January' if the evaluation of the token [m] on that date translates into the string '1' (ie. it is in January).
Topic 109017, last updated on 18-Apr-2020