public void SetGlobalVar(string varName, object value, bool persisted = true)
The string name of the global variable
No description provided.
True
To get, set, or unset persisted global variables, set to true or leave empty.
To get, set, or unset temporary/non-persisted global variables, set to false.
void
using System;
public class CPHInline
{
public bool Execute()
{
string value = "This is saved to a global variable";
//Examples on usage
//Save to a persisted global variable called "myString"
CPH.SetGlobalVar("myString", value, true);
//Save to a non-persisted global variable called "myString"
CPH.SetGlobalVar("myString", value, false);
return true;
}
}