The jmp instruction jumps to a label if the condition true.
Synopsis
jmp(type.src rel_op type.src,
label
)
Description
The jmp instruction is a conditional jump to the labeled instruction. The values of the two source operands are compared as specified by the relational operator.
Example
The following example directs the script to go to the attendant subroutine if ch.0 contains * and to go to the BYE subroutine if ch.0 contains #.
jmp(*ch.0=='*',attendant)
jmp(*ch.0=='#',BYE)
See also