strContains()
Purpose
Used to determine whether a string contains 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 contains the other.
Syntax
result = strBeginsWith( stringVar, to_find )
Arguments
result True (1) or false (0) result to indicate whether the string contains the search target
stringVar The string being checked
to_find To string being searched for
Example
stringVar = "FUZE"
to_find = "Z"
loop
clear()
if strBeginsWith( stringVar, to_find )
print( "String '", stringVar, "' contains '", to_find, "'" )
else
print( "String '", stringVar, "' does not contain '", to_find, "'" )
endif
update()
repeat
Associated Commands
str(), strBeginsWith(), strEndsWith(), strFind(), strReplace(), stringHash()