This compiler error will occur if there is no expression following an if keyword.
For example:
if
// do something
endif
In the above example, the compiler expects to see a boolean expression following (and on the same line as) the if keyword.
Topic 109602, last updated on 18-Apr-2020