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