You can display the value of variables inline within text blocks. This allows you to customize the text based on the current value of variables in a title.
To display the variable's value inline within the text, include the VAR(varName)
syntax. The syntax 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".
|
Select from the reserved variables or the variables that you have defined. Use all uppercase for "VAR" and no spaces are allowed in between the parenthesis and the variable name. If the variable name does not exist, then the user will see VAR(varName) exactly as shown in the Publisher.
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)".) |
For details about using the Variable drop-list in the Properties for text, see Adding a variable from the Text Properties ribbon.
© Copyright eLearning Brothers 2021