I have this HTML
<script>
internet_explorer = false;
</script>
<!--[if IE]>
<script type="text/javascript">
internet_explorer = true;
</script>
<![endif]-->
and this JS:
console.log(internet_explorer)
When I run this on all browsers it should be false and it is. However, it is supposed to be true on Internet Explorer but it's false. What do I do wrong?