SLEEP Wait for n seconds
Syntax:
SLEEP(n)
- n: number of seconds to wait.
Remarks:
If seconds is not a valid numeric value SLEEP will wait for 0 seconds.
Examples:
# print "Hello world" every two seconds while("TRUE") print("hello world") sleep(2) end while
# this is a label. it marks a point in the script :connect # Connect to server. The return value of OPENHOST # is stored in $result $result=OPENHOST("myserver.com","me","13579") # Check if $result is different from "OK" IF($result!="OK") # Wait for 5 seconds and try again SLEEP(5) GOTO :connect END IF