How to Configure "end_based_on_condition" Step When "[Object] Key Does Not Exist or Value is Null or Undefined"?

This topic was automatically generated from Slack. You can find the original thread here.

I am trying to configure a “end_based_on_condition” step using the “[Object] Key does not exist or value is null or undefined” and I can’t figure out what I’m supposed to put as the initial and second values. If I leave the second value blank, the configuration is incomplete and I can’t test it. Other things I’ve tried are throwing errors.

Oh I think for that condition you’re only supposed to have a single input :thinking_face:

Yea I think that’s a bug — can you check it out? Btw Celeste, this functionality is getting a major facelift with control in the new builder :slightly_smiling_face:

Thanks for flagging Celeste and for the tag Danny. I’ve filed a bug report and will follow up here once this is fixed!

Hi what you need to do is to set the Initial Value prop with the name of the key in an object and then you can set the object in the Second Value prop something like:

Initial Value -> "msg"
Second Value -> "{ "msg": "Hi!" }"

so that would exit the flow in your case

That works, thank you !