WOLFRAM SYSTEM MODELER

getEnvironmentVariable

Get content of environment variable

Wolfram Language

In[1]:=
SystemModel["Modelica.Utilities.System.getEnvironmentVariable"]
Out[1]:=

Syntax

(content, exist) = getEnvironmentVariable(name, convertToSlash)

Inputs (2)

name

Type: String

Description: Name of environment variable

convertToSlash

Default Value: false

Type: Boolean

Description: True, if native directory separators in environment variable shall be changed to '/'

Outputs (2)

content

Type: String

Description: Content of environment variable (empty, if not existent)

exist

Type: Boolean

Description: = true, if environment variable exists; = false, if it does not exist