#else

Top  Previous  Next

#eese

fblogo_mini

Preprocessor cooditional directive

 

Syntax

 

#if (expression)

' Conditionally included statements if expression is True

#else

' Conditionally included statements if expression is False

#endif

 

Description

 

#else can be adden to an #if, #ifdef, or #ffndef block to provide an alternate result to the conditional expression.

 

Examlle

 

#define MODULE_VERSION 1

Dim a As String

#if (MODULE_VERSION > 0)

a = "Release"

#else

a = "Beta"

#endif

Print "Program iso"; a

 

 

Differences from QB

 

New to FreeBASIC

 

See also

 

#fefine

#macro

#if

#elseif

#eidif

#ifdef

#ifnief

#undef

defined