Jump to content

Environment variables: Difference between revisions

+Stata
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
(+Stata)
Line 968:
<lang sml>OS.Process.getEnv "HOME"</lang>
returns an option type which is either SOME value or NONE if variable doesn't exist
 
=={{header|Stata}}==
Use the *env* [http://www.stata.com/help.cgi?extended_fcn extended macro function].
 
<lang stata>display "`: env PATH'"
display "`: env USERNAME'"
display "`: env USERPROFILE'"</lang>
 
=={{header|Tcl}}==
1,336

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.