Originally posted by RTHOMASDESIGN
View Post
Announcement
Collapse
No announcement yet.
A range conditional
Collapse
X
-
- 1 like
-
Originally posted by Scot - ScotsScripts.com View PostCode:<mvt:if expr="l.settings:product:inv_available GE 1 AND l.settings:product:inv_available LE 4"> do something </mvt:if>
Code:<mvt:if expr="l.settings:product:inv_available GE 1 AND l.settings:product:inv_available LT 5"> do something </mvt:if>
Leave a comment:
-
More information on logic operators here: http://www.mivascript.com/topic/operators.html
Leave a comment:
-
Code:<mvt:if expr="l.settings:product:inv_available GE 1 AND l.settings:product:inv_available LE 4"> do something </mvt:if>
Code:<mvt:if expr="l.settings:product:inv_available GE 1 AND l.settings:product:inv_available LT 5"> do something </mvt:if>
Leave a comment:
-
A range conditional
Having a <mvt:duh> moment </mvt:duh> - how do I check for a range? Less than 5 but not 0. (4 through 1) - it's to check for an inventory level
Code:<mvt:if expr="l.settings:product:inv_available LT '5'"> <div id="js-inventory-message" class="column whole np"> &mvt:product:inv_short; </div> </mvt:if>
Thanks!
Leslie
Tags: None
Leave a comment: