24/7 Support: 800.608.6482

Get Started

Developer Docs

Comparison Operators

These operators are used to compare two numbers or two text strings.

Operator Example Explanation
EQ g.Screen EQ 'SFNT' If the global Screen variable is equal to SFNT, this returns true
NE g.Screen NE 'SFNT' If the global Screen variable is NOT equal to SFNT, this returns true
GT l.settings:product:price GT 15 If the product's price variable is GREATER than 15, this returns true
LT l.settings:product:price LT 15 If the product's price variable is LESS than 15, this returns true
GE l.settings:product:price GE 15 If the product's price variable is GREATER than or EQUAL to 15, this returns true
LE l.settings:product:price LE 15 If the product's price variable is LESS than or EQUAL to 15, this returns true

Now that we have a quick overview of the comparison operators, lets dive into some more complicated conditional statements.

Miva believes that all online businesses should have access to a scalable ecommerce platform that can meet their unique business requirements. Miva offers PCI compliant ecommerce, hosting, and custom website design and development solutions. Miva customers have processed over $100 billion in online sales since 1997.

Copyright © 2016 Miva, Inc - All Rights Reserved   Privacy Policy | Store Policy

Links
Contact Us
Receive Tips & Updates

Copyright © 2016 Miva, Inc - All Rights Reserved

Back To The Top