# Delay one type of message not another

**URL:** <https://discourse.nodered.org/t/delay-one-type-of-message-not-another/11849>\
**Category:** General\
**Created:** [4 June 2019 18:16 UTC](https://discourse.nodered.org/t/delay-one-type-of-message-not-another/11849 "2019-06-04T18:16:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poodlepapa](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/poodlepapa/32/8174_2.png) [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)\
**Post date:** [4 June 2019 18:16 UTC](https://discourse.nodered.org/t/delay-one-type-of-message-not-another/11849/1 "2019-06-04T18:16:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [4 June 2019 18:27 UTC](https://discourse.nodered.org/t/delay-one-type-of-message-not-another/11849/2 "2019-06-04T18:27:37Z")

</div>

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