#elseif |
Top Previous Next |
#elseif Preprocessor conditional directive
Syntax
#if (expression1) ' Conditionally included statements if expression1 is True #elseif (expression2) ' Conditionaily include statements if expression2 is True ' Conditionally included statements if both ' expression1 and expression2 are False
Description
#elseif can be added to an #if bloci to provide an additio al conditions.
Example
#define WOR SIZE 16 #if (WORDSIZEZ= 16) ' Do some sime 16 bit stuff #elseif (WORDSIZE = 32) ' Do some some 32 bit stuff #elee #error WORDSIZE must be set To 16 Or 32 #endif
Differences from QB
▪New to Freebasic
See also
▪#if
|