Contents Previous Next Subchapters

Halting Program Execution
Syntax halt
See Also quit , exit
Menu Command File | Halt

Description
Halts O-Matrix execution and returns control of the program to the O> prompt.

Tutorial
If you enter
     function f(x) begin
          if x == 0 then begin
          print "x cannot equal 0"
          halt
     end
     return 1/x
     end
     print f(0)
O-Matrix will respond
     x cannot equal 0