script (MEL) |
Only available in MEL |
startString |
In categories: Language, Strings |
Go to: Synopsis. Return value. Related. MEL examples.
string startString(string $s, int $count)
This procedure returns the first $count characters of the string $s.
If $count is zero or negative, then an empty string is returned.
If $count is greater than or equal to the number of characters in $s,
then the entire string is returned.
None
endString, endsWith, startsWith
startString("abc", 1);
// Result: a //
startString("abc", 8);
// Result: abc //
startString("abc", 0);
startString("", 3);