Else
 
Purpose 
Performs an alternate set of script steps when an If or Else If script step evaluates to false.
See also 
Format 
Else
Options 
None.
Compatibility 
 
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 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
Else must follow an If script step or Else If script step. Else cannot follow another Else script step.
When all If script steps and Else If script steps evaluate to false, script execution moves to the Else script step. The script steps under Else are executed, and script execution moves to the End If script step.
Example 1 
Performs a find. If no records are found, displays a custom dialog. If records are found, sorts the found set.
Perform Find [Restore]
If [Get ( FoundCount ) = 0]
Show Custom Dialog ["Find Records"; "No records were found."]
Else
Sort Records [Restore; No dialog]
End If
Related topics 
Else If
If structure examples
Script steps reference (alphabetical list)
Script steps reference (category list)