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 [2015/07/14 15:51]
127.0.0.1 external edit
en:variables [2015/11/10 13:29] (current)
vladz [Variable processing]
Line 1: Line 1:
-====== ​Variable processing ​======+====== ​Processing variables======
  
  
-====== The variables ​used to ======+===== Why use variables =====
  
 +Variables can be used to:
  
     * Provide access to your data within the project     * Provide access to your data within the project
Line 12: Line 13:
  
  
-====== Types of variables =====+===== 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 22: Line 22:
  
  
-====== Create, rename, and display ​of variables ​======+===== Create, rename, and display variables =====
  
  
Line 28: Line 28:
  
  
-<​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. +**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>​+
  
  
Line 39: Line 38:
  
  
-====== How to access the variable =====+===== 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}} 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 ======+===== Variables use ===== 
 {{youtube>​YvmrETeOJD8?​medium}} {{youtube>​YvmrETeOJD8?​medium}}
  
-====== Variables initialization ======+===== Variables initialization ===== 
 {{youtube>​2vXkJIk86yE?​medium}} {{youtube>​2vXkJIk86yE?​medium}}
  
-====== Remove a variable from the project ======+===== Remove a variable from the project ===== 
 {{youtube>​LX3wqMh24-4?​medium}} {{youtube>​LX3wqMh24-4?​medium}}
  
-====== Variable counter ======+===== Variable counter ===== 
 {{youtube>​gtkflXeyMG0?​medium}} {{youtube>​gtkflXeyMG0?​medium}}
  
-====== Get variables value ======+===== Get variables value ===== 
 {{youtube>​WIE_IRtq-DI?​medium}} {{youtube>​WIE_IRtq-DI?​medium}}
en/variables.1436889073.txt.gz · Last modified: 2015/08/13 16:13 (external edit)