/
endsWith

endsWith



Function: endsWith()

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

Syntax

endsWith(stringToTest, stringToLookFor)

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

Related content

endsWith
endsWith
More like this
endsWith
endsWith
More like this
endsWith
endsWith
More like this
startsWith
startsWith
More like this
startsWith
startsWith
More like this
startsWith
startsWith
More like this