Using MVT inside JavaScript (Version: 4) - Miva - Snippets
<!-- Assign our two values --> <mvt:assign name="g.valueOne" value="1" /> <mvt:assign name="g.valueTwo" value="2" /> <!-- We can use mvt with JavaScript because the values are inserted before JavaScript executes --> <script> var test = &mvt:global:valueOne; + &mvt:global:valueTwo;; document.write(test); </script>