OK, so you want to test that and set the output accordingly. There are several ways of doing it but in a function node you just need something like
if (msg.payload.currentHeaterStatus === "0n") {
msg.payload = true
} else {
msg.payload = false
}
return msg
or you can write that in one line but a bit less clearly using
msg.payload = (msg.payload.currentHeaterStatus === "on")
return msg
or you do it in a Change node using a JSONata expression.