|   FOR_TO_ENDFOR |   DEVELOPER |  | 
Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > FOR_TO_ENDFOR
| 
 | 
 | 
| Purpose | FOR TO ENDFOR controls execution of a loop.  A loop is a construct containing a statement or block of statements that is executed repeatedly until a certain condition is met. | 
| Syntax | FOR control-variable = initial-value TO final-value {BY increment/decrement} ENDFOR  | 
| Operation | control-variable must be a numeric variable.  | 
| Remarks | If a statement in the loop changes the value of increment, decrement, final-value, or control-variable, the number of times the loop is executed is affected.  The statements within the loop are executed repeatedly, while control-variable is incremented or decremented from initial-value to final-value.   | 
| Example | FOR #I = 1 TO 10 | 
Topic ID: 520059