The monadic system function ŒEC will execute its argument and return a result which is a three item vector containing a return code, the error type and the result (or ŒEM) respectively. The return code is an integer in the range 0 to 5
0 Error 1 Expression with a result which would display 2 Expression with a result which would not display 3 Expression with no explicit result 4 Branch to a line 5 Naked branch
The second item is the value that would be returned by ŒET (without altering the current value of ŒET). The third item is the result (if one is generated); for return code 3 or 5 the third item is 0 0½0; for return code 4 the third item is the argument to the branch; for return code 0 the third item is ŒEM.
ŒET 0 0 ŒEC '2×''A''' 0 5 4 DOMAIN ERROR (Error, ŒET, ŒEM) 2×'A' ^ ŒET 0 0 (ŒET has not changed)
ŒEC overrides any ŒSTOP settings
’TEST [1] 2×5 [2] +/¼100 [3] ’ 1 ŒSTOP 'TEST' (Stop set on line 1) 1 ŒEC 'TEST' (Execute TEST under ŒEC) 10 5050 3 0 0 (No explicit result, ŒET, empty vector) ŒSTOP 'TEST' (Stop setting still active) 1