I think I'm either going nuts or I'm missing something obvious. I have a relay board that returns a string 0 or 1 based on the relay state. I'm trying to convert the "int" to on/off and pass it as the payload to a switch.
For some reason I can't get the function node to convert this correctly.
Output from the exec node that is passed to the function node above: