%TEMPLATE_MODE HTML
# ------------------------------------------------------------
%CONTEXT
m1 = 'You are using Internet Explorer.'
m3 = 'Welcome to Internet Explorer 7!'
m4 = 'You are not using version 7.'
m5 = 'You are using IE 7 or greater.'
m6 = 'You are using IE 5 (any version).'
m7 = 'You are using IE 5.5 or IE 6.'
m8 = 'Please upgrade your version of Internet Explorer.'
m9 = 'This nested comment is displayed in IE 7.'
# ------------------------------------------------------------
%INPUT
<!--[if IE]><p th:text="${m1}">...</p><![endif]-->
...
<!--[if IE 7]><p th:text="${m3}">...</p><![endif]-->
...
<!--[if !(IE 7)]><p th:text="${m4}">...</p><![endif]-->
...
<!--[if gte IE 7]><p th:text="${m5}">...</p><![endif]-->
...
<!--[if (IE 5)]><p th:text="${m6}">...</p><![endif]-->
...
<!--[if (gte IE 5.5)&(lt IE 7)]><p th:text="${m7}">...</p><![endif]-->
...
<!--[if lt IE 5.5]><p th:text="${m8}">...</p><![endif]-->
...
<!--[if true]>You are using an <em>uplevel</em> browser.<![endif]-->
...
<!--[if true]><![if IE 7]><p th:text="${m9}">...</p><![endif]><![endif]-->
# ------------------------------------------------------------
%OUTPUT
<!--[if IE]><p>You are using Internet Explorer.</p><![endif]-->
...
<!--[if IE 7]><p>Welcome to Internet Explorer 7!</p><![endif]-->
...
<!--[if !(IE 7)]><p>You are not using version 7.</p><![endif]-->
...
<!--[if gte IE 7]><p>You are using IE 7 or greater.</p><![endif]-->
...
<!--[if (IE 5)]><p>You are using IE 5 (any version).</p><![endif]-->
...
<!--[if (gte IE 5.5)&(lt IE 7)]><p>You are using IE 5.5 or IE 6.</p><![endif]-->
...
<!--[if lt IE 5.5]><p>Please upgrade your version of Internet Explorer.</p><![endif]-->
...
<!--[if true]>You are using an <em>uplevel</em> browser.<![endif]-->
...
<!--[if true]><![if IE 7]><p>This nested comment is displayed in IE 7.</p><![endif]><![endif]-->