Script Steps Reference
Table Of Contents
- Contents
- Script steps reference (alphabetical list)
- About script steps
- Control script steps
- Navigation script steps
- Editing script steps
- Fields script steps
- Set Field
- Set Field By Name
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Device
- Insert From Index
- Insert From Last Visited
- Insert From URL
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert QuickTime
- Insert Audio/Video
- Insert PDF
- Insert File
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Records script steps
- New Record/Request
- Duplicate Record/Request
- Delete Record/Request
- Delete Portal Row
- Delete All Records
- Open Record/Request
- Revert Record/Request
- Commit Records/Requests
- Copy Record/Request
- Copy All Records/Requests
- Import Records
- Export Records
- Save Records As Excel
- Save Records As PDF
- Save Records As Snapshot Link
- Found Sets script steps
- Windows script steps
- Files script steps
- Accounts script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Glossary
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