This guide will cover the basics of properly using the 'Delay' parameter seen below. Delays are most commonly used to ensure that the previous command has had time to be executed in full when the subsequent commands are dependent of it's results.
Before getting started, there are a few important things to note;
- The value attributed to Delay is always in seconds.
- The minimum value cannot be less than 1.
- The value can not include any trailing decimals. Ex: 1 vs 1.5
- The maximum value has no limit.
NOTE: The longer the delay, the higher the potential of subsequent commands not being executed in a case where the extension memory were to refresh. - Delay can be used alone in a line of syntax. (see example below)
- The Delay parameter will ALWAYS be executed first when in a command with other parameters.
Examples
In the following alert, b=long appears at the start of the command though delay=15 will be executed first which will result in a 15 second delay before a long is placed.
b=long delay=15 d=1
While in this example, we have separated the parameters into two commands to control the order in which the execute. This will result in a long being placed before the alert delays for 15 seconds and then will continue to execute any subsequent commands.
b=long d=1
delay=15 d=1
Comments
0 comments
Please sign in to leave a comment.