Your Ad Here

Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

getenv <string>

getenv is undoable, queryable, and editable.

The argument is the name of an environment variable. This command returns the value of that environment variable. If it doesn't exist, an empty string is returned.

Return value


string

Related

env, putenv

MEL examples

$s=`getenv "PATH"`;
// Result: :/usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:/etc:/usr/etc //
  

Return to Autodesk Index


Your Ad Here