Pauses execution of an SPL function.
PAUSE(seconds, mode, keybreak)
seconds |
- |
A real. Number of seconds to pause. |
||||
mode |
- |
Optional. An integer, background processing mode:
|
||||
keybreak |
- |
Optional. An integer, break on key press:
|
Nothing.
echo("Paused ...");pause(10);echo("Done")
The "Paused ..." message is displayed on the status bar. All processing is suspended for 10 seconds, then the "Done" message is displayed on the status bar.
echo("Paused ...");pause(10, 1);echo("Done")
Same as above accept background processing is enabled (e.g. the clock continues to tick).
break_on_key requires mode to be set to 1.
When used in conjunction with ECHO or PRINTF, PAUSE is helpful for checking intermediate values of variables during execution.