pos()

btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/pos() · 312 B

From the archive btonline-btechmux-0.6-rc4.tbz2

Download the archive   « Back to the archive contents

& pos()
 
  Syntax: 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:
 
  > say pos(man,superman) 
  You say "6"
 
	See Also: match(), member()

Site Stats

Snippets: 1791
Codebases: 571