This documentation is archived and is not being maintained.

Conditional Compilation

Conditional compilation enables JScript to use new language features without sacrificing compatibility with older versions that do not support the features. Some typical uses for conditional compilation include using new features in JScript, embedding debugging support into a script, and tracing code execution.

Conditional Compilation Directives

Lists the directives that control how a script is compiled and links to information that explains the proper syntax for each directive.

Conditional Compilation Statements

Lists and discusses the statements that control compilation of a script depending on the values of the conditional compilation variables.

Conditional Compilation Variables

Lists the predefined variables available for conditional compilation.

Writing, Compiling, and Debugging JScript Code

Links to topics that explain how to use the Integrated Development Environment (IDE) to write JScript code.

How to: Compile JScript Code from the Command Line

Describes how to use the command-line compiler to produce compiled JScript programs.

Detecting Browser Capabilities

Describes how to determine what versions of JScript a Web browser engine supports by using script engine functions and conditional compilation.

JScript Compiler Options

Links to information that lists the compiler options available for the JScript command-line compiler.