# x command (PROC processor)

The x command serves two purposes:

- In a mainline (PROC) routine, the x command functions as a stop command and halts the PROC.

- In a subroutine, the x command acts as a return statement, and returns control to the next executable line after the one that invoked it.

## Syntax

```
x {text}{+}
```

## Parameter(s)

| text | Text to display to the terminal before exiting. |
| --- | --- |
| + | Suppresses the usual carriage return at the end of the text. |

## See also

- [Linkages](https://d3codex.com/proc/linkages/)
- [PROC processor](https://d3codex.com/proc/proc-processor/)

---
Source: https://d3codex.com/proc/x-command-proc-processor/ - part of the D3Codex reference.
