fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 205: Get an environment variable
Idiom # 205: Get an environment variable
See
programming-idioms.org
:
Code
foo := envir.vars.get "FOO" "none"
What are effects?
Running Example
foo := envir.vars.get "FOO" "none" home := envir.vars.get "HOME" "/" path := envir.vars.get "PATH" "/bin" say "$foo $home $path"
What are effects?
last changed: 2024-07-01
next: Idiom # 206: Switch statement with strings