Function: getenv

Usage: String @getenv ( String environment_varname ) Returns the value of an environment variable.
Note: in version 1.0, this function crashes if the environment variable is not set, but not if it's set but null. <#cws
@if_not_null($COOKIE_last_page, @print("<a href='index.cws?" + $COOKIE_last_page + "'>Back</a>")
@setcookie("last_page", @getenv("QUERY_STRING"))
#>

Result:

See also

Setcookie