Olliegod commented on a Page, Countdown Script. Great for Holidays.  -  Dec 01, 2007
alias blah {
  if (%1 == -11) {
    set %1 2
  }
  if (%1 == -10) {
    set %1 3
  }
  if (%1 == -9) {
    set %1 4
  }
  if (%1 == -8) {
    set %1 5
  }
  if (%1 == -7) {
    set %1 6
  }
  if (%1 == -6) {
    set %1 7
  }
  if (%1 == -5) {
    set %1 8
  }
  if (%1 == -4) {
    set %1 9
  }
  if (%1 == -3) {
    set %1 10
  }
  if (%1 == -2) {
    set %1 11
  }
  if (%1 == -1) {
    set %1 12
  }
}

This can be shortened to

alias blah if (%1 < 0 && %1 > -12) set %1 $calc(%1 + 13)

Also you should look into using while loops rather than goto\'s.
Altogether this isn\'t an amazing script but I suppose it\'s decent.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.