User Tools

Site Tools


action:Set_Variable_to_Text

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
action:Set_Variable_to_Text [2017/07/15 11:50]
JMichaelTX Fix error in dynamic variable per @peternlewis
action:Set_Variable_to_Text [2017/07/15 12:10]
JMichaelTX Add block explaining processing of dynamic var tokens
Line 59: Line 59:
  
 **This requires two steps (two Actions):** **This requires two steps (two Actions):**
-  ​- //Set Variable to Text Action// (this action) to dynamically determine a standard variable token based on one or more variables, which optional text.+ 
 +{{:​action:​set-variable-text-dynamic-var.png?​nolink|}} 
 + 
 +**The Steps Are** 
 +  * **STEP 1.**\\  ​//Set Variable to Text Action// (this action) to dynamically determine a standard variable token based on one or more variables, which optional text.
     * In the text area of the Action, enter a special form of the Token entity, where you will embed another Variable token, and optionally text.     * In the text area of the Action, enter a special form of the Token entity, where you will embed another Variable token, and optionally text.
     * For example: `%%Variable%%myVar%Variable%myVarNum%%%`     * For example: `%%Variable%%myVar%Variable%myVarNum%%%`
       * Note the use of two percent symbols (`%%`) in places where you want the result to be one `%`.       * Note the use of two percent symbols (`%%`) in places where you want the result to be one `%`.
-      * Here is how this text will be processed when the Action executes: <​code>​+      * Here is how this text will be processed when the Action executes:\\  .<​code>​
 %%Variable%%myVar%Variable%myVarNum%%% %%Variable%%myVar%Variable%myVarNum%%%
  
Line 77: Line 81:
 %Variable%myVar2% %Variable%myVar2%
 </​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.\\     
-  ​[[action:​Filter_Variable|Filter Variable Action]] using the //Process Tokens// option.+  ​* **STEP 2.**\\  ​[[action:​Filter_Variable|Filter Variable Action]] using the //Process Tokens// option. 
  
-{{:​action:​set-variable-text-dynamic-var.png?​nolink|}} 
  
 --- ---
  
 ==== Dynamic Determination in Variable Name Block ==== ==== Dynamic Determination in Variable Name Block ====
 +
 Since the Variable Name block of the //Set Variable to Text// Action accepts tokens, we can just use it directly if we just need to concatenate two more more Variables, with optional text. Since the Variable Name block of the //Set Variable to Text// Action accepts tokens, we can just use it directly if we just need to concatenate two more more Variables, with optional text.
   * For example: `%Variable%myPrefix%%Variable%myFieldName%`   * For example: `%Variable%myPrefix%%Variable%myFieldName%`
action/Set_Variable_to_Text.txt · Last modified: 2023/09/15 05:44 by peternlewis