Skip to main content

Environment.get

Environment.getkeyif_missing

Aliases: read environment

Documentation

Returns a value of a specified environment variable or Nothing if such variable is not defined.

Arguments

  • key: The name of the environment variable to look up.
  • if_missing: The default fallback value.

Examples

Look up the value of the PATH environment variable.

      import Standard.Base.System.Environment

example_get = Environment.get "PATH"