ZennoLab

Automate everything

User Tools

Site Tools


en:variables

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
en:variables [2012/07/05 08:46]
grom
en:variables [2015/11/10 13:29] (current)
vladz [Variable processing]
Line 1: Line 1:
-====== ​The variables ​used to ======+====== ​Processing ​variables======
  
  
-  * Provide access to your data within the project +===== Why use variables =====
-  * Helps to organize cycles +
-  * Provide a link between the threads executing a project +
-  * Provide a link between the different projects running +
-  * Provide access to the current web page or a computer. For example, URL of the current page, the text of the current web page, the current time, etc.+
  
 +Variables can be used to:
  
-====== Types of variables ======+    * Provide access to your data within the project 
 +    * Helps to organize cycles 
 +    * Provide a link between the threads executing a project 
 +    * Provide a link between the different projects running 
 +    * Provide access to the current web page or a computer. For example, URL of the current page, the text of the current web page, the current time, etc.
  
 +
 +===== Types of variables =====
  
     * Local variables are visible only inside of your project, and only in the executing thread. At the beginning of the project, these variables get their value from the initial list of variables. At the end of the project these variables will be destroyed and their values ​will no longer be available.     * Local variables are visible only inside of your project, and only in the executing thread. At the beginning of the project, these variables get their value from the initial list of variables. At the end of the project these variables will be destroyed and their values ​will no longer be available.
Line 19: Line 22:
  
  
-====== Create, rename, and display of variables ======+===== Create, rename, and display ​variables ===== 
 + 
 + 
 +All local variables are usually created in the actions themselves, from which you want to get the result. 
 + 
 + 
 + 
 +**It is strongly recommended to give the variables meaningful names. Otherwise, you will quickly begin to flounder in a more or less complex projects. In a few weeks you will not understand them.** 
 + 
 + 
 +Also, local variables can be created in the project editor in the static block settings area. There is a list of all your project ​variables, it is editable. When you create a variable in the list of all the variables you can assign an initial value. ​  \\ Note: The variables in the list of variables can be renamed. If you rename their name will be changeв automatically whenever they are used in the project. ​  \\ All other variables (and also local) are available in the project editor via button "All variables"​. 
 + 
 + 
 + \\ {{:​en:​variable_new_action_eng.png?​200}}{{:​en:​variable_statick_block_eng.png?​200}} 
 + 
 + 
 +===== How to access the variable ===== 
 + 
 +All variables are available through a macro by name, such as ** {-Variable.my_var-} **  (this a macro to access variable ** my_var **). For global variable you have to specify the namespace of the variable. A macro variable can be inserted into any field in the Project Editor. When you perform an action, the macro will be replaced by the value of the variable. ​  ​\\ ​ \\ {{:​en:​save_eng.png?​200}}{{:​en:​variable_count_eng.png?​200}} 
 + 
 + 
 +====Variables use ===== 
 + 
 +{{youtube>​YvmrETeOJD8?​medium}}
  
 +===== Variables initialization =====
  
-All local variables are usually created in the actions themselves, from which you want to get the result.  +{{youtube>2vXkJIk86yE?​medium}}
-<code>It is strongly recommended to give the variables meaningful names. Otherwise, you will quickly begin to flounder in a more or less complex projects. In a few weeks you will not understand them.</​code>​ +
-Also, local variables can be created in the project editor in the static block settings area. There is a list of all your project variables, it is editable. When you create a variable in the list of all the variables you can assign an initial value. ​ \\ Note: The variables in the list of variables can be renamed. If you rename their name will be changeв automatically whenever they are used in the project. ​ \\ All other variables (and also local) are available in the project editor via button "All variables"​.+
  
 +===== Remove a variable from the project =====
  
- ​\\ ​{{:​en:​variable_new_action_eng.png?200|}}{{:​en:​variable_statick_block_eng.png?​200|}}+{{youtube>​LX3wqMh24-4?medium}}
  
 +===== Variable counter =====
  
-====== How to access the variable ======+{{youtube>​gtkflXeyMG0?​medium}}
  
 +===== Get variables value =====
  
-All variables are available through a macro by name, such as ** {-Variable.my_var-} ** (this a macro to access variable ** my_var **). For global variable you have to specify the namespace of the variable. A macro variable can be inserted into any field in the Project Editor. When you perform an action, the macro will be replaced by the value of the variable.  +{{youtube>​WIE_IRtq-DI?medium}}
-\\  \\ {{:​en:​save_eng.png?​200|}}{{:​en:​variable_count_eng.png?200|}}+
en/variables.1341478012.txt.gz · Last modified: 2015/07/14 15:50 (external edit)