• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Using Conditional Logic > CONTROLLING A SCRIPT’S FLOW

CONTROLLING A SCRIPT’S FLOW

Typically, actions in your scripts execute consecutively, from beginning to end—a sequence that represents your script’s flow. Using conditional logic, you can control this flow by scripting specific actions to execute only when a specific condition (or condition) is met or exists in your movie. By implementing conditional logic in your scripts, you give your movie the ability to make decisions and take action based on various conditions you’ve set it up to analyze—an ability that allows your movies to take on a life of their own. The following conditional statements, or phrases, are used to implement conditional logic in your scripts.

If/Then Statement

At the heart of conditional logic is the simple If/Then statement. Take a look at the following example:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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