Sequential branching

Sequential branching works like this: Each time Authorware passes through a decision structure. it takes a different path, starting with the one on the left. The second time it passes through the structure, it takes the second path; the third time, it takes the third path, and so on.



The introduction to this section described how you can use a decision icon to evaluate a pretest and take the path to the part of a course where it's appropriate for a user to start. You can also use a decision icon to present a pretest.

You set up the decision structure so that each path presents one of 10 questions in the quiz.



You attach a calculation to the decision icon and, to keep track of the number of questions a user has answered, enter this expression in the Calculation window:

counter := counter+1

The expression adds 1 to the custom variable counter each time Authorware passes through the decision structure.

In the Decision Options dialog box, you select Until True as the Repeat option and enter this expression:

PercentWrong>30 | counter=10

The first expression, PercentWrong>30, tells Authorware to continue repeating the decision structure until the user has answered more than 30 percent of the questions wrong. The second expression, counter=10, tells Authorware to continue repeating the decision structure until the user has answered all the questions. The "or" (|) bar between the two tells Authorware to repeat the decision structure until either expression is true.

Because you've set the decision icon to branch sequentially, each time Authorware passes through the decision structure it moves one path to the right. If you don't include an expression to tell Authorware when to stop repeating the decision structure, when it reaches the last path it returns to the left-most path and starts over again.

The Reset Path On Entry option affects what Authorware does if it leaves the decision structure and then returns to it later. If Reset Path On Entry is selected, Authorware starts over again with the first path. If it isn't selected, Authorware remembers which path it followed the last time it passed through the decision structure and moves one path to the right.


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/authorware/7/using_aw_en/07_dir10.htm