# Deploy configs if condition is true

**URL:** <https://discourse.nodered.org/t/deploy-configs-if-condition-is-true/2943>\
**Category:** General\
**Created:** [7 September 2018 11:56 UTC](https://discourse.nodered.org/t/deploy-configs-if-condition-is-true/2943 "2018-09-07T11:56:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rskhatri](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@rskhatri](https://discourse.nodered.org/u/rskhatri)\
**Post date:** [7 September 2018 11:56 UTC](https://discourse.nodered.org/t/deploy-configs-if-condition-is-true/2943/1 "2018-09-07T11:56:54Z")

</div>

Hi,

My question is regarding configuration deployment.  
When I deploys changes, it should be conditional. I would like to fail deployment of my node if input from hardware is not correct. How can I do it? So, if input is correct it will save configs in flow.json otherwise not.

Thanks.

Best Regards,  
Rohit

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 September 2018 12:14 UTC](https://discourse.nodered.org/t/deploy-configs-if-condition-is-true/2943/2 "2018-09-07T12:14:52Z")

</div>

Hi,

currently there is no way to put any custom logic in the deploy path for doing what you describe.

But it is a use case we're considering with the runtime/editor split work in 0.20.

Nick
