From the course: Advanced FileMaker Pro 12

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Conditional branching using the If script step

Conditional branching using the If script step - FileMaker Pro Tutorial

From the course: Advanced FileMaker Pro 12

Start my 1-month free trial

Conditional branching using the If script step

Earlier in this course, I discussed the If function that's used inside calculation formulas and also calculation dialogs. I explained how it could help you add conditions to your calculation functions. At the time I also mentioned that there is one other area inside the FileMaker Pro development environment where you can also add conditions. That's in the Scripts by using a Script Step that's called the If Script Step. When you introduce conditions into your Scripts, this is commonly referred to as conditional branching. Conditional branching refers to the ability of a Script to be able to perform different sets of actions under different circumstances. If you look inside the Script Maker, you'll see that we've got the If Script Step which comes with its companion End If. We've also got Else If and the combination of these allow you to introduce either one or multiple tests and then, based on whether or not that test is true or false, you can then run some other activity. So the If…

Contents