User Tools

Site Tools


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
Variables [2017/09/20 01:07]
peternlewis [Instance Variables]
Variables [2017/09/26 01:17]
peternlewis removed
Line 2: Line 2:
  
 Keyboard Maestro [[manual:​Variables|variables]] are used much like variables in any scripting or macro language. ​ They provide for the storage of data (only plain text, no styles) as determined by you, the Keyboard Maestro user.  ​ Keyboard Maestro [[manual:​Variables|variables]] are used much like variables in any scripting or macro language. ​ They provide for the storage of data (only plain text, no styles) as determined by you, the Keyboard Maestro user.  ​
 +
 +===== ❗️ NOTICE =====
 +**This page is superseded by this page:  [[manual:​Variables|Variables (in the Manual Segment).]]**
 +
 +---
  
 ===== Key Facts about Variables ===== ===== Key Facts about Variables =====
Line 92: Line 97:
 ===== Instance Variables ===== ===== Instance Variables =====
  
-Variables with names that start with “Instance ” (“ Instance ” with a space, then the rest of the variable name, eg “ Instance Count”) are considered local (v8+) to a specific execution sequence. Each time the macro is run, they will start empty but their value can be seen and changed by other macros within the same execution sequence (for example, if you execute a macro using the Execute Macro action, that macro can see and change the instance variable). Since two instances of a macro can be running at the same time, this is useful to ensure they each have their own version of the variable.+Variables with names that start with “Instance ” (“Instance ” with a space, then the rest of the variable name, eg “Instance Count”) are considered local (v8+) to a specific execution sequence. Each time the macro is run, they will start empty but their value can be seen and changed by other macros within the same execution sequence (for example, if you execute a macro using the Execute Macro action, that macro can see and change the instance variable). Since two instances of a macro can be running at the same time, this is useful to ensure they each have their own version of the variable.
  
 ===== See Also ===== ===== See Also =====