The following snippet shows you how to set and read variables you don't know the exact names of, but they're similarly named.
Code:
  var %n = 1
  while (%n < 11) {
    set $+(%,name,%n) $ticks
    inc %n
  }
  var %n = 1
  while ($var(%name*,%n)) {
    echo -sti2 ** $ifmatch = $eval($ifmatch,2)
    inc %n
  }


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C