Define a constant and set it in Console.
We use it to put a HUGE Acceptance Environment banner in, because Users seems to have a problem reading the URL ;-)
We use the communit commons GetApplicationUrl for that. After we retrieve the URL we detect if we are working in localhost, test, accp or production environment. Depending on that we do all kinds of things like you want to do. After the detection set a boolean to an environment attribute with the boolean values localhost, test ettc. Then you can use this boolean to set the visible condition.
Regards,
Ronald
Maybe you could use a DTAP Module of the App Store? In the related constant, you define your environment and you can use then this constant to define where you are. You propable can build a logic to make it usesable on your visibility.
Thanks for the help, problem solved!