Clay supports a bunch of operators to make certain operations more convenient, depending on the types involved.

String operators

Operator example Name True if …
a == b Equals a equals b (case insensitive)
a === b Equals exactly a equals b (case sensitive)
a .= b Contains a contains b (case insensitive)
a .== b Contains exactly a contains b (case sensitive)
a ^= b Starts with a starts with b (case insensitive)
a ^== b Starts with exactly a starts with b (case sensitive)
a $= b Ends with a ends with b (case insensitive)
a $== b Ends with exactly a ends with b (case sensitive)
a /= b Matches RegExp a matches regular expression b (case insensitive)
a /== b Matches RegExp a matches regular expression b (case sensitive)

Numeric operators

Operator example Description
-a minus
a == b equals
a > b greater than
a >= b greater or equals than
a < b less than
a <= b less or equals than

Boolean operators

Operator example Description True if …
!a not a is false
a == b equals a and b are equals
a && b and both a and b are true
`a b`

Call operator

Operator example Description True if …
a => b call-to operator a calls into (invokes) the function b

getFunctionName