Equinox Online Help - Language Reference - A to Z

Home

BeginsWith

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

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

These operators avoid the need for cumbersome comparisons of the type Left("Marshall", len("Marsh")) = "Marsh"

The function is case sensitive.

CategoryString handling
See Also AfterStr_Function, AfterStr_Statement, BeforeStr_Statement, BetweenStr_Statement, BeforeStr_Function, BetweenStr_Function
Example

This example will look for variables that begin with one of the three expressions:

MyString BeginsWith "A", "Alpha", "Alma".