All Commands
All Program Flow
Commands
FOR_LOOP
This provides a loop of values, dates or times and places the value in the specified variable.
You can use the {LOOP_COUNT} command to return the current iteration.
This command requires an {END_FOR_LOOP} command.
Number | Name | Default | Type | Description |
---|---|---|---|---|
1 | type | integer | String | This indicates the type of loop. It can have any of the following values:
You can also abbreviate them to int, num, alp or dat |
2 | var | V_LOOP | String | The name of the variable to use for the changing value. |
3 | first | 1 or A or today's date depending on the type | String | This is the first value in the loop. If you are specifying the first date then the format YYYY-MM-DD or YYYY-MM-DD hh:mm:ss is required. |
4 | last | 1 or Z or today's date plus 10 days depending on the type | String | This is the last value in the loop. If you are specifying the last date then the format YYYY-MM-DD or YYYY-MM-DD hh:mm:ss is required. |
5 | step | 1 or 1 day depending on the type | String | This indicates the step. Negative values are allowed but the first value should be greater than the last. |
Alphanumeric Example Example
Date Example
February 2020
March 2020
April 2020
May 2020
June 2020
July 2020
August 2020
September 2020
October 2020
November 2020
December 2020
Integer Example
1:2
2:4
3:8
4:16
5:32