ScriptEvent:strLeft

From Mod Wiki

Parameters

string text -- The string to work on.
integer limit -- The maximum number of characters to return.

Result

string

Supported By

sdSysCallThread

Comments

  • If there are not enough characters in the string, the whole string will be returned instead.

Functionality

Returns a string containing the leftmost characters from the input string, up to the limit specified.