strEndsWith()
Purpose
Used to determine whether a string begins with a specific character or series of characters.
Description
Receives two strings of any length, then returns either true or false to indicate whether the supplied string ends with the other.
Syntax
result = strEndsWith( stringVar, to_find )
Arguments
result True (1) or false (0) result to indicate whether the string ends with the string being searched for
stringVar The string being checked
to_find The string being searched for
Example
stringVar = "FUZE"
to_find = "E"
loop
clear()
if strEndsWith( stringVar, to_find )
print( "String '", stringVar, "' ends with '", to_find, "'" )
else
print( "String '", stringVar, "' does not end with '", to_find, "'" )
endif
update()
repeat
Associated Commands
str(), strBeginsWith(), strContains(), strFind(), strReplace(), stringHash()