Chapter 8. Working with Conditional Script Steps
Simple scripting is basically a time- and finger-saver. It automates menu items, batch-processes, straightforward procedures like sorting and printing, and with the use of comments, helps you keep track of your own procedures. But if you never reach beyond a step-by-step record of your actions, you miss out on some of the best reasons to script.Every time you work with FileMaker, you have to make choices based on the task and what you want to accomplish. When you check an account listing against a database of paid invoices, you act one way when you find a paid invoice (pay bills) and another when you discover that the account is still outstanding (send out past due statements). Wouldn't it be nice if you didn't have to spend the time matching up accounts and actions? By adding conditional steps to a script, you can kiss such chores goodbye. Conditional steps allow you to create "smart" scripts that make your decisions by examining options and following the guidelines you provide.