#endif
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:
#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