Script Steps Reference
Table Of Contents
- Contents
- About script steps
- Script steps reference (alphabetical list)
- 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 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
FILEMAKER SCRIPT STEPS REFERENCE 20
Compatibility
Originated in
FileMaker Pro 6.0 or earlier
Description
Must follow an If step or another Else If step; it can’t follow an Else script step.
When an If script step calculation evaluates to True (not zero), FileMaker Pro performs the steps
that are indented under it. When an If script step evaluates to False (zero), script execution moves
to any following Else If steps as long as they evaluate to False. 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 statements, execution will skip ahead to End If.
Examples
If [Get (AccountName) = "Jim Davis"]
Go to Layout [“File One”]
Perform Find [Restore]
Else If [Get (AccountName) = "Julia Vargas"]
Go to Layout [“File Two”]
Perform Find [Restore]
Else If [Get (AccountName) = "Gerard LeFranc"]
Go to Layout [“File Three”]
Perform Find [Restore]
Else
Go to Layout [“File Four”]
Show All Records
End If
Note In this example, Get(AccountName) only returns usable values if database users log in using
assigned account names. If no accounts are created or required, Get (AccountName) returns the
default value ‘Admin’.
Related topics
Script steps reference (alphabetical list)
Contents
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server scheduled script Yes
FileMaker Go Yes
Custom Web Publishing Yes
Instant Web Publishing Yes
Runtime solution Yes