Script Steps Reference

Table Of Contents
Control script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 18
Exit Script
Purpose
Forces the running script, sub-script, or external script to stop immediately. If used in a sub-script,
returns to the main script with or without an optional script result.
Format
Exit Script [Result: <value or formula>]
Options
Click Specify to specify a value in the Specify Calculation dialog box. The value is typically based
on the state of the current script. The value is passed back to the calling script, where it can control
the script’s logic.
Compatibility
Originated in
FileMaker Pro 6.0 or earlier
Description
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