Returns whether the given string ends with the specified suffix.
Syntax
endsWith( string , substring )
string.endsWith( substring )
Parameters
string
|
the string to check.
|
substring
|
the substring to check for.
|
Returns
boolean
|
true if the specified string ends with the given substring.
false if the specified string does not end with the given substring.
|
Example
if s.endsWith( "exit" )
break
end
|