Sleep

Sleep allows you to pause the execution of a script for a given number of seconds.

Syntax

 Sleep EXP_NUM

Examples

 # 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

Description

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.

Associated errors

Error codeDescription
10The argument is not a numeric value.