Wait: Difference between revisions
Jump to navigation
Jump to search
imported>Grotfang mNo edit summary |
imported>Grotfang mNo edit summary |
||
Line 17: | Line 17: | ||
}}| | }}| | ||
function_description=This function will initiate a countdown from {{pspan|secs}} seconds to 0, during which time nothing else will be acted on. It essentially pauses a script.| | function_description=This function will initiate a countdown from {{pspan|secs}} seconds to 0, during which time nothing else will be acted on. It essentially pauses a script. In addition, a countdown prints to the CLI at varying intervals (every 15 secs for large numbers, 5 seconds for smaller numbers and every second from 5 seconds down).| | ||
needscode=yes| | needscode=yes| |
Revision as of 14:53, 10 March 2010
needs(code_samples);
Function Syntax
- secs is the number of seconds you want to count down from.
This function will initiate a countdown from secs seconds to 0, during which time nothing else will be acted on. It essentially pauses a script. In addition, a countdown prints to the CLI at varying intervals (every 15 secs for large numbers, 5 seconds for smaller numbers and every second from 5 seconds down).
CLI Equivalent
wait can also be used from the CLI. It has the same meaning and can be used to pause basic .txt scripts.