string.Right

From GMod Wiki

Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=String.Right]String.Right [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionDemonstrates how to split a string using string.Right
Used onNewerShared.png
Code
print(string.Right("foobar", 3))
OutputPrints "bar" to the console.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox