Line 1: Line 1:
 
Variables can be used to store values (numbers, text strings and true/false conditions). These values can be set in the Macrodroid action “Set variable”. Variables can be used throughout the app as Triggers and Conditions, and can be used for controlling specific Macrodroid and system settings.
 
Variables can be used to store values (numbers, text strings and true/false conditions). These values can be set in the Macrodroid action “Set variable”. Variables can be used throughout the app as Triggers and Conditions, and can be used for controlling specific Macrodroid and system settings.
  
<bold>Global variables</bold>
+
<strong>Global Variables</strong>
 +
 
 +
Global variables are available throughout the application from any Macro. You should use global variables when you need to store a value between more than a single macro.
 +
 
 +
<strong>Local Variables</strong>
 +
 
 +
Local variables are specific to an individual macro. You should use a local variable when the value is only required in that individual macro.

Revision as of 22:14, 2 February 2021

Variables can be used to store values (numbers, text strings and true/false conditions). These values can be set in the Macrodroid action “Set variable”. Variables can be used throughout the app as Triggers and Conditions, and can be used for controlling specific Macrodroid and system settings.

Global Variables

Global variables are available throughout the application from any Macro. You should use global variables when you need to store a value between more than a single macro.

Local Variables

Local variables are specific to an individual macro. You should use a local variable when the value is only required in that individual macro.