Adding variables from the Text Properties ribbon

You can add variables within text to display their values inline within text blocks. This allows you to customize the text based on the current values of the variables in a title. Select from the reserved variables or the variables that you have defined.

The variable you select is used as a placeholder that is replaced with the current value of the variable when the title is run. For example, a text block with the text "Hello VAR(myVar)", provided that the value of myVar on page load is "World", the user at run time would see "Hello World".

  • You can also add and display the value of variables inline within text using the VAR(varName) syntax. For details, see Displaying variables inline within text blocks.

  • If you do not want your VAR expression to be processed, place "\\" before the VAR expression. (For example, "Hello \\VAR(myVar)" will result in "Hello VAR(myVar)".)

To select a variable to place inline within text, follow these steps:

  1. Double-click the text block graphic of the text block in the Title Explorer. Alternatively, you can right-click the graphic and select Properties or right-click on the text block in the work-area and select Properties. The Properties ribbon is displayed.

  2. Place your cursor within the text block where you want to place the variable placeholder.

  3. Click Variable from the Add group. Use the drop-down list to select the variable to add to the text.

The VAR(varName) placeholder (where varName is the name of the variable you selected) is placed within the text block at the position of the cursor. Use Run Mode to test the results of the variable replacement in the text block.

Select New Variable within the Variable drop-down list to configure a new variable. For details about creating variables, see Using the Variable Manager.

See also: Switching between modes

Knowledge Base | Training | Support
© Copyright eLearning Brothers 2021