A combination of a trigger node and a switch node should do what you require.
[{"id":"43a98d75.8a242c","type":"inject","z":"b779de97.b1b46","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":190,"y":4300,"wires":[["cac2538d.f24ac8","a9fb506d.06d008"]]},{"id":"cac2538d.f24ac8","type":"trigger","z":"b779de97.b1b46","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"3","extend":false,"overrideDelay":false,"units":"s","reset":"1","bytopic":"all","topic":"topic","outputs":1,"x":380,"y":4320,"wires":[["6ed73c6e.0d1e1c"]]},{"id":"a9fb506d.06d008","type":"switch","z":"b779de97.b1b46","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":380,"y":4280,"wires":[["6ed73c6e.0d1e1c"]]},{"id":"b8a49dd7.ae362","type":"inject","z":"b779de97.b1b46","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":190,"y":4340,"wires":[["cac2538d.f24ac8","a9fb506d.06d008"]]},{"id":"6ed73c6e.0d1e1c","type":"debug","z":"b779de97.b1b46","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":650,"y":4320,"wires":[]}]