StringParser.getSubstringPosition() - Mtax-Development/GML-OOP GitHub Wiki

Arguments

Name
Type
Optional
substring
No
startFromEnd?
Yes
startPosition?
{int}
Yes

Returns

{int|undefined}

Description

Return the position of the first instance of a substring in the string, starting from its start, end or with offset of either. The position will equal the position of the first character of the substring, always counting from the start. Returns {undefined} if the substring does not exist in the string.

⚠️ **GitHub.com Fallback** ⚠️