Exit command

The Exit command can be used for terminating the execution of an OzML script. This means the commands after the Exit command will not be executed.

Parameters

This command does not require any additional parameters.

OzML example

This simple example shows that how the Exit command effects the execution of the OzML script. The two commands, the Speak and the Delay commands will be executed, and then the Exit command terminates the OzML script and the last Speak command will not be executed.

<Response>
    <Speak>Exit command will be executed in 3 seconds.</Speak>
    <Delay>3</Delay>
    <Exit/>
    <Speak>This command will not be executed.</Speak>
</Response>

More information