Two macros running at the same time

Hi,If I have two macros running at the same time, they may set the same variable name, which will definitely cause an error. Is there a way to set them up so that they can run inside a box without interfering with each other?

Take a look at the "Scope" section of the KM manual.

It's generally good practice to scope variables as tightly as possible, to prevent just this sort of problem. So use local variables (available only to that instance of the macro) when you can, expand to instance variables when you want them to be available to that instance and any sub-macros it spawns, and global if you want the value to be available across macros and/or persist after the macro completes.