Can anyone post examples of macros they use that contain variables so I can see how to use correctly, its been a tough concept for me and seeing examples would go a long way in understanding how to use them
Here is another example of using variables.
In the screenshot
The BTCycle is a Boolean variable - true when my BT cycle computer is connected and false when it's disconnected.
I use this type of variable extensively, as it's extremely easy to use for constraints as shown in the screenshot.
The BT Cycle is a string variable.
I recommend that you work out a strategy for naming global variables, as the number of global variables can increase significantly.
For example, I try to make the name self defining and try to start the variable name with the function of the macro.
That way it makes it easier to find a specific variable in the list, especially useful as the number of global variables increases.
In the screenshot all the variables start with BT as the macro is a Bluetooth macro.
Similarly all my WiFi related macros use global macros starting with WiFi eg WiFiConnected, WiFiCalling.
Don't worry if you decide to change a global variable name - it can be done easily from the variable list and MD will change every occurrence of the variable in your macros for you automatically.