Why can't I combine a macro call with a comparison operator?

You need parentheses to keep the macro call from slurping up all the expressions to the right of it.

@landcover() == 20

or

(@landcover) == 20

or

20 == @landcover

See docs.

1 Like