Last()

From TinyMUX
Revision as of 23:02, 25 November 2010 by Ihavenomouth (talk | contribs) (New page: Category:Functions {{Function|last(<string>[, <delim>])}} Returns the last word of a string, that is, everything to the right of the last space in the string, or the entire string if...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


last(<string>[, <delim>])

Returns the last word of a string, that is, everything to the right of the last space in the string, or the entire string if there are no spaces in the string.

<delim> may be used to specify a word delimiter other than a space.

Example

> say last(This is a test)

You say, "test"


> say last(Happy-Fun-Test-Thing,-) You say, "Thing"

Related Topics

first(), rest()