This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
@cc_on statement activates conditional compilation support within comments in a script.
@cc_on statement activates conditional compilation within comments in a script.
It is not common to use conditional compilation variables in scripts written for ASP or ASP.NET pages or command-line programs because the capabilities of the compilers can be determined by using other methods.
When you write a script for a Web page, always put conditional compilation code in comments. This enables hosts that do not support conditional compilation to ignore it.
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:
@set statement outside of a comment also activates conditional compilation.
The following example illustrates the use of the
Supported in all versions of Internet Explorer, but not in Windows 8.x Store apps.