use mktoBoolean in if statement
**disclaimer: I can't find any docs on this but as usual, if it exists I would be delighted to get the location.**
Hi,
I am trying to get a mktoBoolean to be a trigger in a if statement but I can't get it to work.. see code below, any ideas?
<meta class="mktoBoolean" id="show_sidebar" mktoName="Show sidebar?" default="true" true_value="block" false_value="none" false_value_name="Hide" true_value_name="Show">
<script>
if (show_sidebar === false) {
document.getElementById(main-content-id).style.width=100%;
} else {}
</script>
kundly, jonas.