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