JavaScript tutorial:
@cc_on statement

 

The @cc_on statement is use to activate conditional compilation support.

Syntax

@cc_on

Example

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.

See also: Conditional Compilation, Conditional Compilation Variables, @if Statement, @set Statement