GetVariable Function

Gets value of variable. Returns false if variable does not exist or the type is not matching.

Syntax

bool GetVariable(
const string&in name,
string&out val
)

Parameters

const string&in name
The name of the variable.

string&out val
The value of the variable.

Return value

bool
true if the variable was found and the type is matching, false otherwise.

Remarks

None.