This documentation is archived and is not being maintained.
@if...@elif...@else...@end Statement
Visual Studio 2005
Conditionally executes a group of statements, depending on the value of an expression.
@if ( condition1 ) text1 [@elif ( condition2 ) text2] [@else text3] @end
- condition1, condition2
-
Required. An expression that can be coerced into a Boolean expression.
- text1
-
Optional. Text to be parsed if condition1 is true.
- text2
-
Optional. Text to be parsed if condition1 is false and condition2 is true.
- text3
-
Optional. Text to be parsed if both condition1 and condition2 are false.
Reference
@cc_on Statement@set Statement
Concepts
Conditional Compilation VariablesOther Resources
Conditional Compilation
Show: