SLEEP Wait for n seconds
- n: number of seconds to wait.
If seconds is not a valid numeric value SLEEP will wait for 0 seconds.
# 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