Error, unterminated procedure
Description
Examples
This error occurs when the input is executed before the procedure statement is complete. A proc statement must be terminated by end proc.
To enter multiline inputs without generating errors, press Shift+Enter. This produces another line in the input region without executing the input.
Example 1:
proct∷integer t2
Solution 1: Terminate the procedure with end proc.
proct∷integer t2 end proc
proct::integert^2end proc
Example 2:
proct∷integer
Solution 2: Use Shift+Enter to enter a multiline procedure.
proct∷integer if t>2 then t2 else t end if end proc
proct::integerif2<tthent^2elsetend ifend proc
See Also
proc
shortcut keys
Download Help Document