Reputation: 11114
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!
Upvotes: 15
Views: 17930
Reputation: 11114
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]-->
Upvotes: 17
Reputation: 3504
Yeah, the or operator is: |
. You can check this link for further information on conditional comments.
Upvotes: 3