string.Left
From GMod Wiki
Function | |
Syntax |
string.Left( String s, Integer length ) Where is this used? |
Description: | |
Returns length characters of s, starting from the left. | |
Returns: | String |
Part of Library: | String |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=String.Left]String.Left [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Demonstrates how to split a string using string.Left |
---|---|
Used on | |
Code | print(string.Left("foobar", 3)) |
Output | Prints "foo" to the console. |