This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
action:Set_Variable_to_Text [2017/07/15 12:10] JMichaelTX Add block explaining processing of dynamic var tokens |
action:Set_Variable_to_Text [2019/07/09 04:47] peternlewis |
||
---|---|---|---|
Line 2: | Line 2: | ||
The Set Variable to Text action allows you to set a selected variable to plain text, by either typing in the text box, or selecting a [[:Tokens|Token]]. | The Set Variable to Text action allows you to set a selected variable to plain text, by either typing in the text box, or selecting a [[:Tokens|Token]]. | ||
+ | |||
+ | Alternatively (v9.0+), you can Prepend the text to the variable, or Append the text to the variable by selecting from the action (gear) ⚙ menu. | ||
{{:action:set-variable-text-token-popup.png?nolink|}} | {{:action:set-variable-text-token-popup.png?nolink|}} | ||
- | |||
- | --- | ||
===== Examples ===== | ===== Examples ===== | ||
+ | |||
==== Set To Text You Type ==== | ==== Set To Text You Type ==== | ||
Line 23: | Line 24: | ||
==== Combine Multiple Variables and Text ==== | ==== Combine Multiple Variables and Text ==== | ||
+ | |||
There is no need to use any operators when combining text with multiple variables or other tokens. Just enter the text and variables/tokens as you would like them to appear in the Variable being set by this Action. | There is no need to use any operators when combining text with multiple variables or other tokens. Just enter the text and variables/tokens as you would like them to appear in the Variable being set by this Action. | ||
{{:action:set-variable-text-combine-var.png?nolink|}} | {{:action:set-variable-text-combine-var.png?nolink|}} | ||
- | --- | + | ==== Append to Variable ==== |
+ | |||
+ | You can append directly to a variable with the //Append// variant of the action: | ||
+ | |||
+ | {{append-variable-with-text.png?nolink&512x157| Append to Variable }} | ||
+ | |||
+ | or equivalently using text tokens to expand the variable: | ||
+ | |||
+ | {{set-append-variable-with-text.png?nolink&512x157| Set Append to Variable }} | ||
===== Setup ===== | ===== Setup ===== | ||
Line 82: | Line 92: | ||
</code> | </code> | ||
* This is the variable we want to get the results of, so we will need another Action to get it.\\ | * This is the variable we want to get the results of, so we will need another Action to get it.\\ | ||
- | * **STEP 2.**\\ [[action:Filter_Variable|Filter Variable Action]] using the //Process Tokens// option. | + | * **STEP 2.**\\ [[action:Filter|Filter Action]] using the //Process Tokens// option. |
- | + | ||
- | + | ||
- | + | ||
- | --- | + | |
==== Dynamic Determination in Variable Name Block ==== | ==== Dynamic Determination in Variable Name Block ==== | ||
Line 99: | Line 105: | ||
===== See Also ===== | ===== See Also ===== | ||
- | ---- | + | ==== Actions ==== |
- | + | ||
- | === Actions === | + | |
+ | * Prepend Text to Variable | ||
+ | * Set Variable to Text | ||
+ | * Append Variable with Text | ||
* [[action:Set Variable to Calculation|Set Variable to Calculation]] | * [[action:Set Variable to Calculation|Set Variable to Calculation]] | ||
* [[action:Set Variable to Keychain Password|Set Variable to Keychain Password]] | * [[action:Set Variable to Keychain Password|Set Variable to Keychain Password]] | ||
Line 108: | Line 115: | ||
* [[:Actions|See all Actions]] | * [[:Actions|See all Actions]] | ||
- | ---- | ||
==== Forum ==== | ==== Forum ==== | ||