Site Tools


chngw
no way to compare when less than two revisions

Differences

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


chngw [2007/03/02 02:32] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +# $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 [[what is a word|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