Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE Conditional operator: OR ... if is greater than ie9 or not IE

I want to only include history and ajaxify if the browser is ie9 or greater, OR is not ie:

<!--[if gte IE 9]>
    <script type="text/javascript" src="assets/js/plugins/history.js"></script>
    <script type="text/javascript" src="assets/js/plugins/ajaxify.js"></script>
<![endif]-->

How can I use the OR operator to say this:

<!--[if gte IE 9 | !IE ]> ??

Thanks!

like image 569
HandiworkNYC.com Avatar asked May 09 '13 12:05

HandiworkNYC.com


1 Answers

This worked:

    <!--[if gte IE 9 | !IE ]><!-->
        <script type="text/javascript" src="assets/js/plugins/history.js"></script>
        <script type="text/javascript" src="assets/js/plugins/ajaxify.js"></script>
    <![endif]-->
like image 157
HandiworkNYC.com Avatar answered Nov 15 '22 14:11

HandiworkNYC.com