GetVariable |
Variables | |
Aptilis 1 |
GetVariable(String)
Getvariable retrieves the value of a variable. As it takes an expression as a parameter, variables which names are not known in advance can be retrieved effortlessly.
Return value:
A string if the variable exists, otherwise an empty string.
Example:
my_var = "Hi Everybody!!" $ a = getVariable("my_" + "var") $ print("a=", a$, "\n")Result:
a=Hi Everybody!! |