mIRC Home    About    Download    Register    News    Help

Print Thread
#35204 09/07/03 08:05 PM
Joined: Jul 2003
Posts: 16
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2003
Posts: 16
alias test {

.echo $chan %test

inc %test

if ( %test == 10 goto L1 )

}

:L1


echo $chan caca

anyone can help thnx


#35205 09/07/03 08:24 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
alias test {
.echo $chan %test
inc %test
if ( %test == 10) { goto L1 }
:L1
echo $chan caca
}







new username: tidy_trax
#35206 09/07/03 08:40 PM
Joined: Jul 2003
Posts: 16
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2003
Posts: 16
thnx


#35207 09/07/03 09:29 PM
Joined: Mar 2003
Posts: 54
J
Babel fish
Offline
Babel fish
J
Joined: Mar 2003
Posts: 54
You're trying to count up to 10 and then echo "caca" once finished?

I think this method would be better:
Code:
alias test {
  var %' = 1, %x = 10
  while (%' <= %x) {
    echo -a %'
    inc %'
  }
  echo -a caca
}


Link Copied to Clipboard