Reference > Script steps reference > Control script steps > End Loop
 
End Loop
Purpose 
Marks the end of a Loop script structure.
See also 
Format 
End Loop
Options 
None.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server 
Yes 
FileMaker Go 
Yes 
Custom Web Publishing 
Yes 
FileMaker WebDirect 
Yes 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
Whenever you use a Loop script step, the script editing pane automatically enters an End Loop step. The steps between Loop and End Loop are automatically indented and the End Loop step is placed at the same indentation level as its corresponding Loop step.
Example 1 
Copies the data from Customers::Work Phone to Customers::Day Contact in all records.
Go to Record/Request/Page [First]
Loop
Set Field [Customers::Day Contact; Customers::Work Phone]
Go to Record/Request/Page [Next; Exit after last: On]
End Loop
Related topics 
Loop script step
Exit Loop If script step
Loop structure examples
Script steps reference (alphabetical list)
Script steps reference (category list)