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