Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


...

titleContent Freeze

...


The #endif compiler directive is used to end the most recent #if, #elseif or #else group.

Following the #endif directive, if the matching #if directive was a selected line, lines are unconditionally selected. Otherwise, the entire #if group was not selected, so lines continue to be not selected.

 

Example:

Code Block
languagejavascript
#if not defined(ranonce)
  // this code will only run one time 
  // even if this source file is included more than once with #include
  number = number + 1;
#endif
#define ranonce

 

RPG Equivalent:

/ENDIF