Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

<exit />

The <exit /> element is used to terminate the program immediately.

Attributes

  • code (int, optional): The exit code of the program. If not provided, the default exit code is 0.

Example

<program>
    <print>Exiting the program...</print>
    <exit code="1" />
    <print>This line will not be executed.</print>
</program>