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 :-

// Render my debug info

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

Any hints / tips are appreciated.


James, check out

Hope that helps!