user warning: Table './zuggsoftdb/accesslog' is marked as crashed and should be repaired query: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values('', 'node/292', '', '38.107.179.240', 0, 'p9hsf3bgjdo5ftg4qbk7n6hpq6', 20019, 1337595914) in /home/tessh/public_html/modules/statistics/statistics.module on line 64.

Documentation

additem

Syntax: %additem(s,list)
Related: #ADDITEM, %delitem, #DELITEM, #DELNITEM

add the string s to the specified string list. Duplicate items are allowed.

Note: The string list is not changed, but the new string list is returned. To change the original list, assign the result of this function to the variable using the #VAR command.

To add an item without allowing duplicates, use the #ADDITEM command.

Examples:

#VAR ToDo {kill orc|kill goblin}
#VAR ToDo %addItem("kill orc",@ToDo)
#SHOW @ToDo


displays:

kill orc|kill goblin|kill orc

SpellList=%additem("cast 'armor' me",@SpellList)
Adds the armor spell to the spell list.

Add comment

Login or register to post comments