9.3

Table Of Contents
For a While loop, add a While action. To specify the condition that must be met for the
loop to continue executing, choose an option from the Object Type drop-down menu;
choose the object's name from the Object drop-down menu; and then choose an option
from the Is or the Has drop-down menu. (Note that if you choose Expression from the
Object Type drop-down menu, you must enter an expression that evaluates to true or
false rather than choosing an option from the Is or the Has drop-down menu.)
3
To specify the action to be repeated within the loop, add an action to the script immediately
after the If action, and configure it to do what you want. If you want more than one thing
to happen in the body of the loop, add additional actions.
4
If you are creating a Loop loop, add a Break If action. To specify the condition that must
be met for the loop to stop repeating, choose an option from the Object Type drop-down
menu; choose the object's name from the Object drop-down menu; and then choose an
option from the Is or the Has drop-down menu.
5
To conclude the loop, do one of the following things:
For a Loop loop, add an End Loop action.
For a While loop, add an End While action.
Running a script
After you create a script in the Script tab, you have to configure your presentation to run
it. How you configure your Presentation to run a script depends on when you want the
script to run.
Running a script when a user event occurs
To run a script when a user event occurs:
1
Click the Event tab in the Interactive palette.
2
Select the object in the Object list.
3
Optionally choose a cursor preference from the Cursor drop-down menu.
4
Choose an option from the User Event drop-down menu.
5
Optionally choose a sound to play from the Event Sound drop-down menu.
6
Choose Script > Run from the Action drop-down menu.
7
Choose the script from the Script drop-down menu.
Running a script from another script
To run a script from another script:
1
Click the Script tab in the Interactive palette.
2
Select the script from the Script list.
352 | A GUIDE TO QUARKXPRESS 9.3 - PLUS EDITION
INTERACTIVE LAYOUTS