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.