In a single switch node is there a way to compare multiple variables from msg.payload

Question in subject.

Thank you.

You will have to merge them first in a merge node.

so if this is an example msg object that the switch node receives:

{ "payload": {
    "id": "4",
    "property": "scene"
  }
}

is there a way to use a single jsonata expression or another way in rules for the switch node to evaluate if id = “4” and property = “scene”?

thanks.

figured it out. in the switch node set property to msg.payload then change rule to jsonata expression then this expression will evaluate to true:

payload.id = "4" and payload.property = "scene"