First()

From TinyMUX
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().