Docs
Download

Variables

Keep values while your add-on runs, in one flow or for the whole add-on.

Variables (Add › Variables) hold a value your nodes can read and change later: a total counted up in a loop, a flag that a modal operator is running, the last object you worked on. They live in memory and are gone when Blender closes. To keep a value in the .blend file or show it as a field in a panel, use a property instead; Variables explains the difference.

NodeDoes
Local VariableCreates a variable that exists in the rest of the flow it's in, starting at Initial Value
Global VariableCreates a variable shared by the whole add-on, readable from every tree
Get VariableReads the current value of a variable you pick on the node
Set VariableChanges a variable: Set a new value, Change By an amount, or Toggle a boolean

The label of a Local Variable or Global Variable node is the variable's name. Set the label (F2, or Label in the sidebar's Node tab) before you pick it elsewhere, so the pickers and the generated code read well.