Newbie Node-red function

Hello Team,
I am a new user of Node-red and would like to use it in conjunction with my envisalink (DSC) board.
On of my starting point is to create a function with different options depending of the current output.
More precisely, I am getting the following screen output:

zone event : msg.payload : Object

{ zone: 1, code: “610”, status: “Zone Restored” }

and I would like to have a function to test according to the previous zone/code/status

What should I use for example for the first output ? Which syntax ?
I used :
image

but i doesn’t work …again I am a real beginner :slight_smile:

Regards

You have to be more specific. You’ll need to choose one of the values to focus on zone code status

The other thing you need to be aware of is numbers vs strings. Numbers in quotes are strings so

image

Numbers without

image

Thanks Mikefila !
To be more specific, here is my node red:


Today when I clicked on Status report, I get the full answer with all 16 probes status.

I’d like to have a function (the block with 4 output is just an example) which gives only selected ones (for example zone 3 ,5,6 and 10 ) …
Thx