Script Steps Reference

Table Of Contents
Control script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 24
Else If
Purpose
Evaluates a Boolean calculation and performs a conditional action based on that evaluation, like the
If script step.
Format
Else If [<Boolean calculation>]
Options
Click Specify to define the Boolean calculation. In the Specify Calculation dialog box, type the
calculation you want evaluated, or use the field list (on the left) and the functions list (on the right)
with the mathematical and text
operators to build the calculation.
Compatibility
Originated in
FileMaker Pro 6.0 or earlier
Description
Must follow an If step or another Else If step. Else If cannot follow an Else script step.
When an If script step evaluates to False, script execution moves to the Else If script step. When an
Else If statement evaluates to True, the block of steps under the Else If is executed. An evaluation of
True ends the Else If process, and upon reaching the next Else If or Else statement, execution will
skip to the
End If script step.
Example 1
Performs a find and sorts records. If no records match the find request, displays a custom dialog.
Perform Find [Restore]
If [ Get ( LastError ) = 0 ]
Sort Records [Restore; No dialog]
Else If [ Get ( LastError ) = 401 ]
Show Custom Dialog ["No records were found."]
End If
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