Help Center
Help CenterFreeBASIC

#ifdefkeyword

Preprocessor conditional directive

Preprocessorkeyworddocumented

Syntax

#ifdef symbol
' Conditionally included statements
#endif

Description


Conditionally includes statements at compile time.

Statements within the #ifdef...#endif block are included if symbol is defined and excluded (ignored) if symbol is not defined.

#ifdef symbol is equivalent to #if defined (symbol)

Remarks

Differences from QB


  • New to Freebasic

See also


Example


#define _DEBUG

#ifdef _DEBUG

    ' Special statements for debugging

#endif



Reference

  • Documented in KeyPgPpifdef.html