Difference between revisions of "Goto loops"

From Scriptwiki
Jump to: navigation, search
m (cleaning wanted pages-list)
(No difference)

Revision as of 20:18, 30 October 2006

You can use goto command to jump from one point to another in a script.
Goto's aren't used very much.

alias testmsg {
  if ($1 == ahihi) { goto ahihi }
  elseif ($1 == kiaa) { goto kiaa }
  else { echo -ag try again! }

  :ahihi
  msg #channel ahihi
  halt

  :kiaa
  msg #channel kiaa
  halt
}