24/7 Support: 800.608.6482

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.

Looking for Developer Docs?

We have a whole section for that, including: Developer Training Series, Template Language docs, Module Development tutorials and much, much more.

Head to the Developer Section

Copyright © 1997 – 2026 Miva®, Miva Merchant®, MivaPay Vault®, Camp Miva®, Miva Connect®, Vexture℠, Miva, Inc. All Rights Reserved.