• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

About Conditional Steps

Look closely at a simple, menu-driven script step. It's just a series of terse commands. “Go to this layout,” “Find these records” or “Sort this file.” The script has no contingency plan. Add a conditional step, and the script can ask the question “Under what condition should I perform this command?” More to the point, it can answer the question by examining the options you've provided.

What makes a step conditional? That word of possibilities: if. In ScriptMaker, If is always followed by a condition. Conditions are very much what you might think they are: the situation under which the script can act. “If the account is based in Boston,” “If the part is listed in inventory” and “If it's after March 31” are all examples of conditional statements. If the phrase following the If is true (it's a Boston account, the part is in inventory) the script will execute any commands that follow the If step. When the answer is no, the script may execute a different command or do nothing, depending on how you've structured the rest of the If command.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint