Sleep
Sleep
allows you to pause the execution of a script for a given number of seconds.
Sleep EXP_NUM
EXP_NUM
is a numeric expression returning a number of seconds (positive). # Let's try to lock a symbol# If the symbol is already locked, wait for 1 second before trying againNB_ATTEMPTS=0RepeatNB_ATTEMPTS+=1Lock DOSSIERIf fstat <> 0Sleep 1EndifUntil fstat = 0 or NB_ATTEMPTS>10
The Sleep
statement allows you to pause the execution of a script. The execution is suspended for the given number of seconds and then resumes after the Sleep
.
Error code | Description |
---|---|
10 | The argument is not a numeric value. |