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 string 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.


Contents abs addkey