![]() |
[SCRIPT] Check if String is in String? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Check if String is in String? (/thread-24726.html) |
Check if String is in String? - WALP - 03-01-2014 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. RE: Check if String is in String? - Romulator - 03-01-2014 Think this is it: PHP Code: bool StringContains(string& asString, string& asSubString); Example: searching for “hello” in “hello world” would return true. asString - the string to check asSubString - the string to search for |