cat • stringop

String Operators

Concatenation

String & String Concatenates two strings.
String &/ String Concatenate two strings that contain file names. Add a path separator between the two strings if necessary.

Comparison

String = String Returns if two strings are equal.
String == String Returns if two strings are equal. The comparison is case insensitive.
String LIKE String Checks if a string matches a pattern.
String MATCH String Checks if a string matches a PCRE regular expression.
Since 3.5
String BEGINS String Checks if a string begins with a pattern.
String ENDS String Checks if a string ends with a pattern.
String <> String Returns if two strings are different.
String1 < String2 Returns if String1 is strictly lower than String2.
String1 > String2 Returns if String1 is strictly greater than String2.
String1 <= String2 Returns if String1 is lower or equal than String2.
String1 >= String2 Returns if String1 is greater or equal than String2.

See also