|
|
| #ELSE | ||
| #ELSE | ||
| Parameters: NONE | ||
| Returns: NONE | ||
#ELSE is used in combination with the conditional #IF / #ENDIF directives. #ELSE allows the #IF directive to choose between two paths the compiler could take. #If performs a comparison of a constant expression at compile time, if the expression resolves to be true, the code following the #IF statement and between the #ELSE statements will be compiled. If not, then the code between the #ELSE-#ENDIF will be ignored. For more information on the logic behind #IF / #ELSE / #ENDIF statements, please refer to the #IF page. FACTS: * #IF/#ELSE/ #ENDIF are directive all evaluated at compile time. Mini Tutorial: This simple examples shows how to use th #IF/#ELSE/#ENDIF directives to conditional select a section of code to compile.
This example would output.
|
| Related Info: | #Abort | #ENDIF | #IF | #IFDEF | #IFNDEF | #Warn | Comparisons : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |