This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
token:Variable [2015/07/15 05:59] peternlewis |
token:Variable [2016/12/29 22:24] peternlewis |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | The //%Variable%// token allows you to include a variable in a token text field. For Example, | + | {{:token:variable-icon.png |}} |
+ | The //%Variable%//`<VariableName>`% token allows you to include a [[:Variables|variable]] in a [[:Text Fields |token text field]], where `<VariableName>` is the name of the variable. | ||
- | Insert Text: Sally said “Hello” to %Variable%First Name%. | + | |
+ | For Example, using the [[action:Insert_Text|Insert Text]] Action: | ||
+ | |||
+ | {{ :token:km-wiki-insert-text-action.png?nolink |}} | ||
+ | |||
+ | You can (v7.2+) access a variable as if it is a comma separated array of text using the notation //%Variable%//`<VariableName>[3]`% where 3 can be any [[manual:Calculations|Calculations]]. You can use a different item separator b=y putting the text between the ] and % characters, eg //%Variable%//`<VariableName>[3]:`%. | ||
You can also use a short form of just //%Variable Name%// to include variables as long as the variable exists and has a value and there is no corresponding text token, although generally it is better and clearer to use the longer form //%Variable%Variable Name%//. | You can also use a short form of just //%Variable Name%// to include variables as long as the variable exists and has a value and there is no corresponding text token, although generally it is better and clearer to use the longer form //%Variable%Variable Name%//. | ||
+ | |||
+ | ===== See Also ===== | ||
+ | |||
+ | - [[:Text Fields]] | ||
+ | - [[:Tokens]] | ||
+ | - [[:Variables]] | ||