Added in 1.9.0

/goto <label>

Allows you to jump from one point in a script to another point.

Parameters

Parameter Description
<label> The label to jump to.

Example

; /is_even <1-9>
;
; Example: /is_even 2
;   2 is an even number.
;   2 is a prime number.
alias is_even {
  /goto $1
  :0 | echo -a You typed zero. | return
  :4 | echo -a $1 is an even number.
  :1 | :9 | echo -a $1 is a perfect square. | return
  :2 | echo -a $1 is an even number.
  :3 | :5 | :7 | echo -a $1 is a prime number. | return
  :6 | :8 | echo -a $1 is an even number. | return
  :error
  /echo -a Only single-digit numbers are allowed!
  /reseterror
}