Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel

TSL anchor [[[ ]]]


TSL anchors are used to mark attributes or expressions to be interpreted as TSLText Substitution Language.


So if you want to use an attribute value in a text block, you insert the attribute at the position you want the value to appear and enclose it with TSL-Text Substitution Language anchors.

If you want to interpret an expression in a text block, place the expression between the TSL anchors.


Syntax

Code Block
[text] [[[expr]]] [text]


Inputs

  • expr is an attribute or expression that you want interpreted by the TSLText Substitution Language
  • text is plain text

Note: You cannot ‘nest’ anchors. So [[[<expr1>[[[< expr2>]]]]]] will result in an error.


Example

Suppose you want to create a welcoming message after a user has logged on to your application. Then you could create the following TSL message:

Code Block
Welcome [[[user.first_name]]] [[[user.last_name]]]

When user John Doe logged in, the message shown in your application is: “Welcome John Doe”

Back to top