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".
|
To select a variable to place inline within text, follow these steps:
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.
Place your cursor within the text block where you want to place the variable placeholder.
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
© Copyright eLearning Brothers 2021