Conditional Statement based on Environment

Hi Group,

I’m needing to add in some conditional code based on the environment the code is running under.

For example, on our error page I’m wanting to add in some debug information if the project is being run in Development and / or Test.

Pseudo I’m thinking of is along the lines of :-

if(objEnviroment.isDevelopment()){
// Render my debug info
}

I’ve done some Googling but couldn’t find anything.

Any hints / tips are appreciated.

Cheers,
James

James, check out http://ortus.svnrepository.com/coldbox/trac.cgi/wiki/cbEnvironmentControl

Hope that helps!