X

Halts execution of a Proc and returns control to TCL.

Syntax

X{text}{+}

Syntax Elements

text is the text to be displayed.

+ specifies that a RETURN will not be output and the cursor remains at the present position when control is returned to TCL.

Operation

The X command is typically used to stop a Proc if an error is found or when there are no more Proc instructions to be executed.

The optional text following the X command should be informative.

Example 1

F-OPEN 1 %1
X CANNOT OPEN FILE

In this example, the X command stops execution of the Proc if the file in %1 cannot be opened and displays a message to that effect.

Example 2

.
.
.
XEND OF PROCESSING

In this example, the X command terminates the Proc and displays a message when all the Proc instructions have been executed.