Articles on: Expressions

Logical Comparisons

A logical comparison is an expression which evaluates to TRUE or FALSE. These may use the equals (=), not-equals (!=), greater-than (>), greater-than-or-equal (>=), less-then (<) and less-than-or-equal (<=) operators, e.g.

@(contact.age > 18)

Note that when comparing text values, the equals ( and not-equals (!=) operators are case-insensitive.

Updated on: 30/11/2021

Was this article helpful?

Share your feedback


Thank you!