Error getting tags :
error 404Error getting tags :
error 404 environment | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
environment
Basics
Expander triangle
Type
Function
Syntax
the environment environment()
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the type of running environment the stack is in.
Examples

the environment
if the environment is "development" then showDevelopOptions

Additional Comments
Expander triangle

Use the environment function to change a stack's behavior depending on how the stack was opened.

Value:

The environment function returns one of "development", "helper application", or "standalone application".

Comments:

If the environment function returns "development", the stack is running under the development environment. (To find out which edition of the development environment is running, check the revLicenseType function.)

If the environment function returns "helper application", Revolution is running as a helper application, configured by a web browser to display web-based content.

If the environment function returns "standalone application", the stack is running as a standalone application.

If you start up Revolution by Command-double-clicking a stack (Mac OS or OS X) or Control-double-clicking (Unix or Windows), so that the Revolution development environment is not available, Revolution behaves as a standalone application.

User Comments
Expander triangle
User thumbnail
Phil Davis
StarStarStarStarStar
Jan 31, 2009
The environment can also return "command line". If the environment returns "command line", the stack (or script) is running as a CGI script.
User thumbnail
Mark Schonewille
StarStarStarStarStar
Oct 3, 2009
From RunRev 4.0 onwards, with the introduction of the browser plug-in, the environman can also return "browser", if the stack is running inside a browser window.