 |
jjf Newbie
Joined: 17 Jan 2004 Posts: 5
|
Posted: Sat Jan 17, 2004 8:55 am
wholist checker and stringlists |
I have @friends john|quen|neal
#Forall @friends {who %i}'.that runs great but because that only displays name if not on.
#trig {No matches for '(%w)'.}{#DELITEM @friends %1} it is not deleating from the list
I then wanted it to #sh @friends
but what it is doing instead of deleating it is creating a new list say quen is the only one on it is creating a list with the value of john|neal |
|
|
 |
nexela Wizard

Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat Jan 17, 2004 9:02 am |
#trig {No matches for '(%w)'.} {#delitem friends %1}
Basicly just remove the @ from the variable name
DELITEM
Syntax: #DELI stringlist item
Related: #ADDITEM
Deletes the specified item from the stringlist. If item exists in the stringlist more than once, then all occurrences of item in the list are deleted. To only delete the first item when working with duplicates, use the %delitem function.
DELITEM Example
#DELITEM Friends Zugg
Removes "Zugg" from the stringlist Friend |
|
|
 |
jjf Newbie
Joined: 17 Jan 2004 Posts: 5
|
Posted: Sat Jan 17, 2004 9:21 am |
quote: Originally posted by jjf
I have @friends john|quen|neal
#Forall @friends {who %i}'.that runs great but because that only displays name if not on.
#trig {No matches for '(%w)'.}{#DELITEM @friends %1} it is not deleating from the list
I then wanted it to #sh @friends
but what it is doing instead of deleating it is creating a new list say quen is the only one on it is creating a list with the value of john|neal
Just figured that out. But thanks
|
|
|
 |
|
|