Directive #IF Syntax Error Message

techElder

Well-known member
Syntax check comes up with an error message:

Error: = 8 is not a numeric value, try #IFDEF instead of #IF?
Code:
#define edition = 8

#if edition > 6
  let b1 = 8
#else
  let b1 = 4
#endif
This is the code example from the web page on Directives for #IF, but I first found it with my own code.

Windows 7 & PE 6.0.9.1
 

hippy

Technical Support
Staff member
Code:
#define edition = 8
That sets 'edition' to "= 8", not the "8" you want. Take the "=" out and you'll be on your way again.

The mistake in the #IF example code has been corrected. Sorry about that.
 
Top