Frictional Games Forum (read-only)

Full Version: Check if String is in String?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does angelscript for hpl2 have a way of checking if a certain string is within another string?
Fx if I wanted to check if "Bob" was in the string "BobTheBuilder"
and then if he was, do something.
Think this is it:
PHP Code:
bool StringContains(stringasStringstringasSubString); 
Checks whether a string contains the specified string.
Example: searching for “hello” in “hello world” would return true.

asString - the string to check
asSubString - the string to search for