Delay one type of message not another

I would like to delay one type of number payload. If the number is 1 then hold that message for 20 min but if it is 0 pass it on with no waiting. Can I do this with a delay and function node? thank you

Try a switch node to separate the values 0 and 1 and then a delay node on the "1" output of the switch node.