You can use the value of a variable or expression to determine which path in a decision structure Authorware follows.
Authorware numbers the icons attached to a decision icon from left to right, starting with 1.
If a variable's value is 1, Authorware branches to the first icon; if the variable equals 2, it branches to the second icon. If the value of a variable isn't a whole number, Authorware ignores the decimal part of a value; it considers 0.75 equal to 0 and 4.25 equal to 4. Notice that Authorware doesn't round the value to the nearest whole number--it simply drops the decimal part of the value. If a value is less than 1 or larger than the number of icons attached to the decision icon, Authorware bypasses all the attached icons and moves to the icon that follows the decision icon on the flowline, regardless of which Repeat option you've selected.
If you want something to happen only when a certain condition is true, use a logical variable or a conditional expression. If the variable or expression is true, Authorware treats it as if it's equal to 1 and branches to the first icon attached to the decision icon. If the variable or expression is false, Authorware treats it as if it's equal to 0, bypasses the icon attached to the decision icon, and moves to the icon following the decision icon on the flowline. For an example, see Branching based on a conditional expression.
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_dir14.htm