Lua
C++
Edit

Right

This method returns the rightmost characters of the string.

Syntax

Parameter Description
count Maximum number of characters to return

Returns

Returns the rightmost characters of the string. If the count parameter is equal to or greater than the length of the string, the entire string is returned.

Example

local s = "Hello, how are you today?"
Print(Right(s, 6))
Copyright © 2006-2025 Leadwerks Software.
All rights reserved.
Leadwerks 4 Documentation