First()

From TinyMUX
Revision as of 21:15, 24 November 2008 by Keegan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

FIRST()

 FUNCTION: first(<string>[, <delim>])
 Returns the first word of a string, that is, everything to the left
 of the first 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 first(This is a test)
   You say, "This"
   > say first(Would you like coffee, or perhaps tea)
   You say, "Would"
   > say first(List&with&nonstandard&delimiters,&)
   You say, "List"
 Related Topics: rest().