The various Keyboard Maestro shortcuts like Get Variable, Set Variable, Calculate and Process Tokens, all take optional instance values which reference a particular macro execution instance.
If you pass them in to the shortcut, you can then reference local or instance variables.
For example:
and:
Keyboard Maestro Input is the output value of the Get variable shortcut entry.