This documentation is archived and is not being maintained.
@if...@elif...@else...@end Statement
Visual Studio 2010
Conditionally executes a group of statements, depending on the value of an expression.
@if ( condition1 ) text1 [@elif ( condition2 ) text2] [@else text3] @end
The following command-line program illustrates the use of the @if...@elif…@else...@end statement.
@cc_on
print("JScript version: " + @_jscript_version);
@if (@_win32)
print("Running on a 32-bit version of Windows");
@elif (@_win16)
print("Running on a 16-bit version of Windows");
@else
print("Running on a different operating system");
@end
Show: