Perform AND function

Hi all,

Sorry if this question is too basic for you guys, I am quite new to node red world.

I have two inputs, one from mqtt with payload "1", another input from dashboard switch which I have set the ON payload to "1" as well, is there a node to operate AND gate function which takes both inputs and only output if both input A & input B are equal to "1"?
Alternatively, is there a function script performs the same outcome?

Flows.nodered.org is always a good place to search to see what is available. I use node-red-contrib-bool-gate but there are several alternatives that you could use.

Thank you, I have resolved the issue with "and gate" together with "switch" node to pass through the "true" condition, then perform the remaining task.