Is there anyway to change the text written depending on the variable.
Yep. You can be like %%VAR%=%1%Text%% and it'll be replaced with "Text" if %VAR is 1.