I apologize if I misinterpreted your question, but here is
a response.
It is possible for LUA to utilize macro conditionals, consider the macro I use to open the character frame:
Code:
/run RunScript(SecureCmdOptionParse'[btn:2]ToggleCharacter("TokenFrame");ToggleCharacter("PaperDollFrame")')
The SecureCmdOptionParse allows you to utilize WoW macro conditionals with a bit more versatility.