Email this Page Log Support Call Send Feedback Print

Previous Topic

Next Topic

Book Contents

Book Index

Adding a Variable Assignment

A Variable in an object may have a new value assigned to it. For instance, if you wish to set a Variable to a different value throughout a book, you can assign a new value that will replace the default value, and in turn, alter all occurrences of the Variable in the book. Alternatively, you can nominate specific topics to be assigned a new Variable value, while the rest of the book uses the default Variable value.

To add a Variable Assignment

  1. From the Library Explorer choose an object that you wish to assign a new Variable Value to.
  2. From the main menu choose Tools > Variables > Assignments.

    -or-

    Right-click, and choose List Variable Assignments from the shortcut menu.

    The Variable Assignments window appears.

    Assign

  3. Select the Variable that you wish to change the value of, and choose the Arrow Button button.

    -or-

    Right-click, and choose Add Assignment from the shortcut menu.

    The Variable Assignment window appears.

    Variable - assign new value

  4. Enter a new value for the Variable. This value will replace the default Variable value in the object you have specified.

    Note: This change can be made at the Topic level or at the Book level. The substitution priority order is: 1. Topic 2. Book 3. Default. If no Variable value is assigned at the Topic or Book level, the default value is substituted.

  5. Choose OK. The changes to the Variable are saved. The Variable Assignments window displays the default Variable value in the left hand pane, and the new Variable value for the object in the right hand pane.

    VarMenu

  6. Choose OK to close the Variable Assignment window.

    Note: If a blank Variable value is assigned at a Topic or Book level, nothing will appear in the text where the Variable was placed when the Topic is published.

See Also

Working With Variables

Variable Types

Listing Variables

Variable Usage

Variable Assignments

Using Variables in Topics

Using Variables in Hypertext Links

Using Variables in External Files and Templates

Assigning Website Manager Variables

Viewing Usage in Topic Objects

Viewing Assignments in Objects

Where You Might Use Variables

Top of Page Email this Page Log Support Call Send Feedback Print