Hi Daniel,
at the moment this is not possible.
I could check the current domain, and also I could create a macro for this, but I should find a way to allow conditional macros. At the moment a macro is just dynamic and takes a runtime value, but is not "conditional".
Hope this was clear. Let me know if you have more questions.
Regards,
Luigi