getParam
Usage: getParam(PATH_TO_PARAMETER)
This function returns the value of a parameter.
You can use absolute path or relative path to get the parameter, the format is node_name/parameter_name
.
e.g. getParam("../constant1/value")
will return the value of the parameter value
of the node constant1
on the same level as the current node.
Getting Parent Level
".." at the beginning of the path means the parent level of the current node.
Getting Current Node
"./" at the beginning of the path means the current node, you can use this to get the value of the parameter on the current node.
You can also omit the "./" at the beginning of the path, it will be added automatically.
You can also use the shorthand for 'getParam' function if the parameter you are retrieving is on the same node.
Simply write $param_name and it will return the value of the parameter.