Script Steps Reference

Table Of Contents
Control script steps
F
ILEMAKER SCRIPT STEPS REFERENCE 19
Exit Script
Purpose
Forces the running script, sub-script, or external script to stop immediately.
Format
Exit Script [Result: <value or formula>]
Options
<value or formula> specifies a value to pass back to the parent script. The value is typically based
on the state of the current script.
Compatibility
Originated in
FileMaker Pro 6.0 or earlier
Description
If Exit Script is used in a sub-script, returns to the main script with or without an optional script result.
If the optional script result is specified, the script result is returned and stored in the main script until
another sub-script that returns a value is called. The script result gets deleted when you exit the
main script. The script result can be stored in a local or global variable for later use.
Example 1
Performs a find and prints. If no records are found, displays all records and exits the script.
Perform Find [Restore]
If [Get ( FoundCount ) = 0]
Show All Records
Exit Script [ ]
End If
Print [No dialog]
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server scheduled script Yes
FileMaker Go Yes
Custom Web Publishing Yes
FileMaker WebDirect Yes
Runtime solution Yes