Basket #55979 (Version: ) - Miva - Snippets
<h2>MivaScript MOD</h2> <p>MivaScript has a built in Modulus opperator: <code>MOD</code></p> <mvt:assign name="l.settings:total_ports" value="112" /> <mvt:assign name="l.settings:total_blocks" value="floor((l.settings:total_ports -1) / 24) +1" /> <code>total blocks:</code>&mvt:total_blocks;<br></br> <mvt:if expr="l.settings:total_ports GE 112"> <code>wait! please call us</code> </mvt:if>