FBWiki : KeyPgPpelse

FBWiki :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

#ELSE


Preprocessor conditional directive

Syntax:
#if (expression)
' Conditionally included statements if expression is True
#else
' Conditionally included statements if expression is False
#endif

Description:
#else can be added to an #if, #ifdef, or #ifndef block to provide an alternate result to the conditional expression.

Examples:
#DEFINE MODULE_VERSION 1
Dim a As String
#IF (MODULE_VERSION > 0)
  a = "Release"
#ELSE
  a = "Beta"
#ENDIF
Print "Program is "; a


Differences from QB:

See also:

Back to Preprocessor

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.0



sf.net phatcode