Syntax:
exit;
Description:
The exit keyword terminates a script immediately.
A message will be displayed showing the line where the exit occurred.
The exit terminates execution immediately even if it is called in a
user-defined function.
Example
Code |
#
Some commands
int i = 10;
disp(i);
# Exit out
exit;
# Wont get to this statement.
disp("Wont get here...");
|
The output from the above example is:
Output |
10
** MESSAGE from 'Sample.psc'
on Line 6 - Exited... |
See Also:
Keywords