mIRC Home    About    Download    Register    News    Help

Print Thread
loop stuff #67344 10/01/04 06:01 PM
Joined: Oct 2003
Posts: 306
J
jacksparrow2 Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Oct 2003
Posts: 306
alias borrar {
.unset %guest1000

.unset %guest1001
.unset %guest1001
.unset %guest1002
.unset %guest1003
.unset %guest1004
.unset %guest1005
.unset %guest1006
.unset %guest1007

}

how can i do it to unset the %guest var i have 50 to erase
with a loop

thnx



mess with the best
Re: loop stuff #67345 10/01/04 06:09 PM
Joined: Jan 2003
Posts: 148
K
Knappen Offline
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
unset %guest*

Re: loop stuff #67346 10/01/04 08:13 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
unset %guest10* ?? smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: loop stuff #67347 10/01/04 09:19 PM
Joined: Sep 2003
Posts: 156
B
bleach Offline
Vogon poet
Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
if you only wanna rem 50 of them;
Code:
alias remvar var %i = 1 | while (%i <= 50) { if ($var(%guest*,%i)) unset $ifmatch | inc %i }