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...") |
m (1 revision) |
||
(2 intermediate revisions by one user not shown) | |||
Line 19: | Line 19: | ||
=== Return Value === | === Return Value === | ||
− | + | Success: true | |
+ | |||
+ | Failure: false | ||
=== Remarks === | === Remarks === |
Latest revision as of 12:38, 14 June 2015
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") );