StartsWith
The StartsWith() function evaluates whether an input string starts with a specified set of characters.
Related functions: EndsWith
Syntax
StartsWith (SpecifiedElement, Value)
SpecifiedElement | The input string |
Value | The text to match with the start of the input string |
Examples
Assume a variable called EntityCode with the value “ABC001”.
Description | Function | Output |
Does the Entity Code start with ABC? | StartsWith(EntityCode,”ABC”) | True |
Does the Entity Code start with AB? | StartsWith(EntityCode,”AB”) | True |
Does the Entity Code start with A? | StartsWith(EntityCode,”A”) | True |
Does the Entity Code start with Z? | StartsWith(EntityCode,”Z”) | False |
Does the Entity Code start with 001? | StartsWith(EntityCode,”001″) | False |