Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Excerpt
hiddentrue

endsWith(stringToTest, stringToLookFor) Returns True if a String ends with a given pattern otherwise returns False.


Function: endsWith()

Returns True if a String ends with a another given pattern string otherwise returns False.

Syntax

...

ArgumentTypeDescription
stringToTestStringThe string to be searched.
stringToLookForStringThe String to look for in stringToTest

Examples

endsWith("ABCDEF","DEF")

Returns True.


endsWith("ABCDEF","DE")

Returns False.


endsWith(in.prodCode,$prodSuffix)

Returns True if in.prodCode ends in the String contained within $prodSuffix.

See Also