#2 expression can only contain one comparison.

open
nobody
None
5
2006-02-22
2006-02-22
Anonymous
No

When using the prebop preprocessor, the documentation
states that multiple conditions can be chained in the
same way as if statements. For example:

/* $if 'hello' == 'hello' && 1 == 1 $ */

...

this will fail to be evaluated properly by prebop - the
&& will cause an exception.

Discussion

  • Logged In: NO

    sorry, I made a mistake. The problem is with the || (OR)
    comparison. This is because in the Expression class, the
    second character of the OR expression is ! not |. Changing
    that corrects the issue.