chngw
Table of Contents
# $EPIC: chngw.txt,v 1.4 2007/03/02 02:32:04 jnelson Exp $
Synopsis:
$chngw(<index> <word> <word list>)
Technical:
- If the <index> argument is omitted the empty string is returned.
- If the <word> argument is omitted the empty string is returned.
- If the <index> argument is less than 0 then <word list> is returned.
- The return value if <word list> with the <index>th word, counting from zero, changed to <word>.
- Remember that <word list>s are always words.
Practical:
If you need to change one of the words in a word list, use this function. I originally used this function to permit changes to access levels on my bot on the fly.
Returns:
<word list> with the <index>th word changed to <word>, counting from zero.
Examples:
$chngw(2 blah foo bar booya) returns “foo bar blah”
History:
This function first appeared in “plus-2” (post-ircII, pre-EPIC)
chngw.txt · Last modified: 2007/03/02 02:32 by 127.0.0.1