Evaluates a Boolean calculation and performs a conditional action based on that evaluation, like If.
Specify the Boolean calculation you want evaluated.
Product | Supported |
FileMaker Pro Advanced | Yes |
FileMaker Go | Yes |
FileMaker WebDirect | Yes |
FileMaker Server | Yes |
FileMaker Cloud | Yes |
FileMaker Data API | Yes |
Custom Web Publishing | Yes |
Runtime solution | Yes |
FileMaker Pro 6.0 or earlier
Else If must follow an If or another Else If script 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.
Performs a find and sorts records. If no records match the find request, displays a custom dialog box.
Perform Find [Restore]
If [ Get ( LastError ) = 0 ]
Sort Records [Restore; With dialog: Off]
Else If [ Get ( LastError ) = 401 ]
Show Custom Dialog ["No records were found."]
End If