Share via


@cc_on Statement (JScript 5.6) 

Activates conditional compilation support.


@cc_on 

Remarks

The @cc_on statement activates conditional compilation in the scripting engine.

It is strongly recommended that you use the @cc_on statement in a comment, so that browsers that do not support conditional compilation will accept your script as valid syntax:

/*@cc_on*/

...

(remainder of script)

Alternatively, an @if or @set statement outside of a comment also activates conditional compilation.

Requirements

Version 3

See Also

Reference

@if Statement
@set Statement (JScript 5.6)

Concepts

Conditional Compilation (JScript 5.6)
Conditional Compilation Variables (JScript 5.6)