JAMS Variables can be used to store single instances of data. Variables can be used in Parameters, Dependencies and Triggers. You may want to retrieve the value of a JAMS Variable in your code. Here's how to do it.
Getting a Variable value |
Copy Code
|
---|---|
// // Get a connection to our JAMS Server // You will probably have to change the node name "localhost" // to the name of your JAMS Server // JAMS.Server server = JAMS.Server.GetServer("localhost"); // // Get the value of the MyStringVariable Variable // string varValue = JAMS.Variable.Get("MyStringVariable", server) as string; |