A variable is in an @if (conditional compilation) test statement. Only literals and conditional compilation variables (both of which are constant at the time of compilation) are allowed in a conditional compilation test statement.
To correct this error
-
Replace the variable with a literal.
-
Replace the variable with a conditional compilation variable.
See Also
Reference
@cc_on Statement@if...@elif...@else...@end Statement
@set Statement