Loop
Purpose 
Repeats a set of script steps.
Format 
Loop
Options 
None.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server scheduled script 
Yes 
FileMaker Go 
Yes 
Custom Web Publishing 
Yes 
Instant Web Publishing 
Yes 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
This script step and the End Loop script step mark the beginning and end of a repeating structure of script steps. The Manage Scripts feature performs the script steps that are enclosed within the loop structure until it encounters one of the following:
 •
 •
a Go to Record/Request/Page script step or Go to Portal Row script step when the Exit Loop After First/Last option is selected
Every Loop step must have a corresponding End Loop step somewhere after the Loop step and at the same indentation. Whenever you use a Loop script step, the Manage Scripts feature automatically enters an End Loop step.
Examples 
Go to Record/Request/Page [First]
Loop
Set Field [Table1::Bonus; 2500.00]
Go to Record/Request/Page [Next]
Exit Loop if [Get (RecordNumber) = 25]
End Loop
Related topics 
Loop structure example
Script steps reference (alphabetical list)
Script steps reference (category list)