#ifdef name

#ifndef name

#else

#endif

Defined names can be used to to skip certain script lines dependent on previous #defines. All script lines between #ifdef and #endif are skipped if name was not defined. Likewise, all lines between #ifndef and #endif are skipped if name was #defined. The #else statement reverses the line skipping or non-skipping.

Remarks

Example:

#define LOW_RES
...
#ifndef LOW_RES
video_mode = 8; // 1024x768
#else
video_mode = 6; // 640x480
#endif

See also:

#define ► latest version online