Name
EndsWith -- check if string ends on substring (V7.1)
Synopsis
bool = EndsWith(s$, substr$[, casesen, encoding])
Function
This function can be used to check if s$ ends on the substring specified by substr$. If it does, True is returned, False otherwise. If the optional argument casesen is set to False, the strings do not have to match in case.

The optional encoding parameter can be used to set the character encoding to use. This defaults to the default string encoding set using SetDefaultEncoding(). See Character encodings for details.

Inputs
s$
input string
substr$
string to compare against s$
casesen
optional: whether or not a case sensitive comparison should be activated (defaults to True which means case sensitive comparison)
encoding
optional: character encoding to use (defaults to default string encoding)
Results
bool
boolean value indicating success or failure

Show TOC