think you need to change the calc to multiply 5 by %c not 2 by $chan(0)

Code:
alias test {
  var %c = 1
  while (%c <= $chan(0)) {
    .timer $+ $chan(%c) 1 $calc(5 * %c) echo -a -> $chan(%c)
    inc %c
  }
}


edit: err removed the extra ) after bekars post

Last edited by chiram; 23/05/07 12:17 PM.