bool String.StartsWith(string lookForText, optional bool caseSensitive)
Returns true if this string starts with lookForText, or false if not.
caseSensitive is false by default, but you can set it to true so that the
function will only return true for an exact-case match.
Example:
String myString = "Hello from the script!";
if (myString.StartsWith("hello"))
{
Display("Starts with hello!");
}
will display the "Starts with hello!" message.
Compatibility: Supported by AGS 3.1.0 and later versions.
See Also: String.EndsWith,
String.IndexOf
|