Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
23
bitchx-docs/6_Functions/findw
Normal file
23
bitchx-docs/6_Functions/findw
Normal file
@@ -0,0 +1,23 @@
|
||||
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:
|
||||
$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" */
|
||||
|
||||
See Also:
|
||||
word(6).
|
||||
|
||||
Reference in New Issue
Block a user