TinyMUX

After()

Functions

FUNCTION: after(<string1>,<string2>)

This function is case sensitive.

Returns the portion of <string1> that occurs after <string2> or after the first word if <string2> isn’t given. If <string2> does not occur in <string1>, a null string is returned. If you want to return the portion of the string after the first space, use the rest() function instead.

Examples:

> say after(This is a test,a)
You say, " test"
> say after(This is a test,is)
You say, " is a test"
> say after(This is a test, nope)
You say, ""

Related Topics: before(), first(), rest().