The iterated DO construct takes the form:
DO variable=start_value, end_value [, increment]
This is equivalent to:
DO WHILE(variable <= end_value)
DO constructs can be named.
variable is an INTEGER variable, whilst start_value, end_value, and increment are INTEGER expressions. increment is optional and when omitted defaults to 1 (unity). increment may be negative in which case start_value>end_value. For example:
!Do something for i=10,8,6,4,2 and 0
EXIT and CYCLE can be used with all forms of the DO construct.