[Solved] Q: on a function

Hi new to node-red.

Can someone pls tell me what's wrong with this simple function? The "if" filter is not working.
TIA

Solved.. Had an error in the link.