String Comparison

Parent Previous Next

String Comparison


A string comparison expression effectively compares two content items, in the form:


Syntax


<content item> <comparison operator> <content item>



The comparison operators are as follows:


Operator

Meaning

==

Equal – the predicate returns true if both content items are the same

!=

Not Equal – the predicate returns true if the content items are different

->

Regular expression – the right content item is treated as a regular expression pattern, and the predicate returns true if the left content item is a match for the pattern. The standard .NET Framework regular expression grammar is used.


Note that all comparison operators are case-insensitive.