#else
Preprocessor conditional directive
#if (expression)
#else can be added to an #if, #ifdef, or #ifndef block to provide an alternate result to the conditional expression.
Syntax
#if (expression)
' Conditionally included statements if expression is True
#else' Conditionally included statements if expression is False
#endifDescription
#else can be added to an #if, #ifdef, or #ifndef block to provide an alternate result to the conditional expression.
Example
#define MODULE_VERSION 1
Dim a As String
#if (MODULE_VERSION > 0)
a = "Release"
#else
a = "Beta"
#endif
Print "Program is "; a
Dim a As String
#if (MODULE_VERSION > 0)
a = "Release"
#else
a = "Beta"
#endif
Print "Program is "; a
Differences from QB
- New to FreeBASIC
See also