Generalized resolveValueOfVariable function which evaluates a node based on the value resolve
The node id or node to resolve
Generalized resolveValueOfVariable function which evaluates a node based on the value resolve