Currently I had created a global variable as "global.glo" = 1. And if I want to get this global variable by using a switch node or change node. Do you have any idea on how to do it? I can't find any example for getting global variable with these nodes.
The example posted by @kuema sets msg.payload to current value of the global variable, so effectively it reads the global into msg.payload.
Also, in a Function node you can use global.get() to read a global into a variable.