Returns the environment the MODLR instance runs in, in lower case, such as production or development.
production
development
script.environment()
The environment's name.
if (script.environment() == "production") { // do something only in production environment. }