TinyMUX

Space()

Functions

FUNCTION: space(<count>)

Returns the number of indicated spaces. If <count> is missing, negative, or cannot be converted to a number, one space is returned. This function is useful when you want to pass a single space (or more than one) as a function to an argument, because normally leading and trailing spaces are stripped from function arguments.

Examples:

> say space(4)
You say, "    "
> say edit(Foo bar bletch, space(), X)
You say, "FooXbarXbletch"

Related Topics: