A Variable is a named value that stores information for use by Tasker tasks, profiles, scenes, and plugins. Variables enable automations to remember data, pass information between components, and make decisions based on changing conditions.
Variables are a core feature of Tasker's automation system.
Local variables begin with a lowercase letter.
Example:
%counter
%name
Local variables are available only within the current task.
Global variables begin with an uppercase letter.
Example:
%BatteryLevel
%CurrentMode
Global variables are accessible throughout Tasker.
Tasker provides numerous predefined variables containing system information.
Examples:
%TIME
%DATE
%BATT
%WIFI
%LOC
Variables can be:
Assigned values
Modified
Compared
Cleared
Passed between tasks
Displayed in widgets and scenes
Variables are commonly used for:
State tracking
User preferences
Counters
Dynamic text generation
Conditional logic
Data storage
Tasks
Scenes
Projects
Arrays