bool String.EndsWith(string lookForText, optional bool caseSensitive)
Returns true if this string ends 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.EndsWith("script!"))
{
Display("Ends with script!");
}
will display the "Ends with script!" message.
Compatibility: Supported by AGS 3.1.0 and later versions.
See Also: String.IndexOf,
String.StartsWith
|