Equinox Online Help - Language Reference - A to Z

Home

EndsWith

Applies to
Syntax[variable] EndsWith [expression]
Action[function] Returns the value true or false
ScopeUsable anywhere
Notes

This operator will return true if the left operand ends with the right operand.

This operator avoids the need for cumbersome comparisons of the type Left("Marshall", len("Marsh")) = "Marsh"

The function is case sensitive.

CategoryString handling
See Also ChrList, Chrs, Compare, Fill, IsNumber, Left_Function, Len, Match, Mid_Function, Remove, Replace, Right_Function], Search_SearchNext, SetLen, SetMaxLen, SortOrder, SubstituteData
Example

This example will look for variables that end with one of the two expressions

MyString EndsWith "ing", "er"