pause

Pauses script execution.

Syntax

  • state = pause()

  • pause(t)

  • pause(newState)

  • previousState = pause(newState)

  • currentState = pause('query')

Input argument

  • t - t: double value. time (seconds) before to continue.

  • newState - a string: 'on' (enable pause) or 'off' (disable pause setting)

Output argument

  • previousState, currentState - a string: 'on' or 'off'

Description

pause(t) suspends execution for t seconds.

pause without input argument wait until return key is pressed.

Example

an example

state = pause
echo('press return to continue.')
pause
pause('off')
pause
pause('on')
pause(5)

See also

sleep.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated