gre.set_value

gre.set_value(
    key,
    value
    [, key2, value2, ...]
)
            

Set a variable in the data manager to a particular value. This function is a convenience function on top of gre.set_data that allows the key and value to be passed as a set of arguments to the function instead of having to create a table containing the key/value pairs.


Parameters:

        key  A string value containing the key to be set with the next following value
value  The value to be assigned to the preceding argument (key)

Example:
            

function lua_func( mapargs )
    -- Assign the string 'variable_data' to the application variable
    -- 'variable_name'
    -- This example is the same as gre.set_data()
    gre.set_value("variable_name", "variable_data")
end