Site Tools


findw
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


findw [2006/08/01 03:13] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +# $EPIC: findw.txt,v 1.2 2006/08/01 02:45:08 sthalik Exp $
 +======Synopsis:======
 +$__findw__(<word> <wordlist>)
 +
 +======Technical:======
 +This function searches <wordlist> for <word> and returns the place it was
 +found. If <word> isn't in <wordlist>, -1 is returned.
 +
 +======Practical:======
 +This function should put many scripters to ease, as it has been written
 +into many scripts :)
 +
 +======Returns:======
 +index to <word> in <wordlist>
 +
 +======Examples:======
 +<file>
 +$findw(very epic is a very scriptable client)         /* returns 3 */
 +
 +assign test blah hmm foo bar
 +eval echo $word($findw(hmm $test) $test)              /* returns "hmm" */
 +</file>
  
findw.txt · Last modified: 2006/08/01 03:13 by 127.0.0.1