Branch condition must be a Boolean expression

Navigation:  Messages > Macro Compiler Messages > Errors >

Branch condition must be a Boolean expression

Previous pageReturn to chapter overviewNext page

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 updated on 15-Apr-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?branchconditionmustbeabooleane.htm