Divide Action

image\Action_Variable_Divide.jpg

The Divide action allows you to divide a specified number or the number contained in a different variable with contents of a variable.

Note:
The other basic math actions available are: Add, Subtract and Multiply. For more complex mathematical functions use the OpusScript language.

Setting up the Divide action:

1. Add the Divide action to your trigger, as described in adding actions. The Divide tab will automatically appear when you add the action.

2. Use the Variable option in the Divide panel to select the name of the variable that will be divided. Click on the down arrow to the right of the Variable box to list all of the variables in the current publication. Alternative, click on the New Variable… button to open the New Variable dialog box in which you can create a new variable.

3. Use the Number option in the By panel to enter the number you want to divide by. Use the spin buttons to set a specific number. By default this option is selected.

4. Use the Variable option in the By panel to select the name of a variable in the current publication whose value you want to divide by. Click on the down arrow to the right of the Variable box to list all of the variables in the current publication. Alternative, click on the New Variable… button to open the New Variable dialog box in which you can create a new variable.

Note:
The value of the variable you select here should only contain a number.

5. Click on the Apply button to save your changes.

Related Topics:

Introducing the Variables Actions

Choosing an Action