Core Function EnvSet
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> EnvSet( <tag>, <expression> ) </pre> === Description === Set the value of an environment variable. === Parameters === ==== tag ==== Name of the environment variable to...") |
(→Return Value) |
||
Line 19: | Line 19: | ||
=== Return Value === | === Return Value === | ||
− | + | Success: true | |
+ | |||
+ | Failure: false | ||
=== Remarks === | === Remarks === |
Revision as of 12:56, 29 August 2013
EnvSet( <tag>, <expression> )
Contents |
Description
Set the value of an environment variable.
Parameters
tag
Name of the environment variable to set.
expression
Value to set the environment variable to.
Return Value
Success: true
Failure: false
Remarks
A environment variable set in this way will only be accessible to programs that Sputnik spawns (Run, RunWait).
Once Sputnik closes, the variables will cease to exist.
Example
EnvSet("MYENV", "this is a test"); MsgBox( EnvGet("MYENV") );