SetEnvironment
["var" -> "value"]SetEnvironment
[{"var" -> "value", ...}]Set a single environment variable:
SetEnvironment["FOO" -> "bar"]
See that the environment variable has changed:
GetEnvironment["FOO"]
Set two environment variables:
SetEnvironment[{"FOO" -> "baz", "A" -> "B"}]
See that the environment variable has changed:
GetEnvironment["FOO"]
Environment values must be strings:
SetEnvironment["FOO" -> 5]
GetEnvironment["FOO"]
If the environment name is not a string, the evaluation fails without a message.
SetEnvironment[1 -> "bar"]
See also Environment
and GeEnvironment
.