# (Comment)
Adds comments to the list of steps in the script.
See also
Options
Enter comments.
Compatibility
Product | Supported |
FileMaker Pro | Yes |
FileMaker Go | Yes |
FileMaker WebDirect | Yes |
FileMaker Server | Yes |
FileMaker Cloud | Yes |
FileMaker Data API | Yes |
Custom Web Publishing | Yes |
Originated in version
6.0 or earlier
Description
Use comments to document your script. Comments appear in bold and are prefaced with a #. Comments are present only when you are viewing the script and do not appear when the script is performed.
Notes
- To add a new line in the comment text, press:
- Windows: Ctrl+Enter or Alt+Enter
- macOS: Ctrl-Return or Opt-Return
- Comments print in italics.
Example 1
Shows how comments are used to explain script steps.
Copy
Go to Layout ["Invoices"]
#Find all invoices for the current customer
Find Matching Records [Replace; Invoices::Customer ID]
#Sort found set by Invoice ID
Sort Records [Restore; With dialog: Off]
#Save all records in the found set as a PDF
Save Records as PDF [With dialog: Off; "Customer Backup.pdf"; Records being browsed ; Create folders: Off]
#Go back to the original layout
Go to Layout [original layout]