In Internet Explorer (IE) versions 5 through 9, a conditional comment is text formatted as a comment in HTML source code with special syntax that IE interprets as a conditional statement. A conditional comment specifies whether to include or exclude code based on the evaluation of a conditional expression and is generally used to support different versions of IE or a browser other than IE.
Support for conditional comments was introduced in IE version 5 and dropped in version 10. In IE 10, conditional comments are not supported when the page is in standards mode (document mode 10). There exists an adjacent technology in JScript (Microsoft's non-standard implementation of JavaScript) called conditional compilation, which uses @-prefixed codes in the style of preprocessor macros in C and C++. Conditional compilation was introduced in IE 4, and was supported up through IE 10, in both standards and compatibility modes.