TinyMUX

Pos()

Functions

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

This function returns the position that string1 begins in string2, with the first position being 1. If string1 is not in string2, then it returns #-1.

Example:

> think pos(man,superman)
6

Related Topics: lpos(), posn().