24/7 Support: 800.608.6482

Developer Docs

Template Language

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.

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2023 Miva©, Miva Merchant©, MivaPay©, MivaCon©, Camp Miva ℠, Miva, Inc. All Rights Reserved.