# Conditional Statement not working properly on show action

**URL:** <https://forum.bubble.io/t/conditional-statement-not-working-properly-on-show-action/308514>\
**Category:** Database\
**Created:** [February 21, 2024, 9:37am UTC](https://forum.bubble.io/t/conditional-statement-not-working-properly-on-show-action/308514 "2024-02-21T09:37:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanis.pluess](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yanis.pluess](https://forum.bubble.io/u/yanis.pluess)\
**Post date:** [February 21, 2024, 9:37am UTC](https://forum.bubble.io/t/conditional-statement-not-working-properly-on-show-action/308514/1 "2024-02-21T09:37:05Z")

</div>

![Screenshot 2024-02-21 at 10.34.40](https://us1.discourse-cdn.com/bubble/original/3X/4/0/40e4b26245e29d8b6159f0fccbefce8e982dd09c.png)

 ![Screenshot 2024-02-21 at 10.35.02](https://us1.discourse-cdn.com/bubble/original/3X/7/f/7f03c7b6a34d4f25dbd4098d5dc4d52fd4836527.png)

I am nearly going crazy with this issue. The thing that the condition is loolking for only gets created in step 7 but somehow the conditional statement thinks it already exists? Eventho because of the terminate workflow it never actually gets created. Please help!!

---

<div class="post-metadata">

**Author:** ![artemzheg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/artemzheg/32/9651_2.png) [@artemzheg](https://forum.bubble.io/u/artemzheg)\
**Post date:** [February 21, 2024, 9:44am UTC](https://forum.bubble.io/t/conditional-statement-not-working-properly-on-show-action/308514/2 "2024-02-21T09:44:03Z")

</div>

> [@yanis.pluess](#):
>
> The thing that the condition is loolking for only gets created in step 7 but somehow the conditional statement thinks it already exists?

Creating a thing is a backend action, and backend actions are triggered as soon as the WF is initiated ([Actions - Bubble Docs](https://manual.bubble.io/help-guides/logic/workflows/actions#the-order-in-which-actions-are-triggered)). If you need to manage the order of operations granularly - you need to wrap actions in custom events (still not a 100% solution, at least I have a bug report opened for setting custom state and backend WF order error).

---

<div class="post-metadata">

**Author:** ![yanis.pluess](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yanis.pluess](https://forum.bubble.io/u/yanis.pluess)\
**Post date:** [February 21, 2024, 9:56am UTC](https://forum.bubble.io/t/conditional-statement-not-working-properly-on-show-action/308514/3 "2024-02-21T09:56:43Z")

</div>

Thanks for the reply! What can I do to do what I am trying to do? Is there a easier way to do it?

Thanks

---

<div class="post-metadata">

**Author:** ![artemzheg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/artemzheg/32/9651_2.png) [@artemzheg](https://forum.bubble.io/u/artemzheg)\
**Post date:** [February 21, 2024, 10:05am UTC](https://forum.bubble.io/t/conditional-statement-not-working-properly-on-show-action/308514/4 "2024-02-21T10:05:34Z")

</div>

So what are you trying to do? Describe the logic

---

<div class="post-metadata">

**Author:** ![yanis.pluess](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yanis.pluess](https://forum.bubble.io/u/yanis.pluess)\
**Post date:** [February 21, 2024, 10:21am UTC](https://forum.bubble.io/t/conditional-statement-not-working-properly-on-show-action/308514/5 "2024-02-21T10:21:04Z")

</div>

I am trying to create a new thing only if this things doesn’t alredy exist and if it does the popup should show that a thing with this number already exists. The problem is that this popup is always shown.

---

<div class="post-metadata">

**Author:** ![artemzheg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/artemzheg/32/9651_2.png) [@artemzheg](https://forum.bubble.io/u/artemzheg)\
**Post date:** [February 21, 2024, 10:31am UTC](https://forum.bubble.io/t/conditional-statement-not-working-properly-on-show-action/308514/6 "2024-02-21T10:31:21Z")

</div>

So you don’t have any issues with thing’s creation and the problem is only with pop-up being shown always?  
If yes - do you have any other action that show this pop-up?

---

<div class="post-metadata">

**Author:** ![yanis.pluess](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yanis.pluess](https://forum.bubble.io/u/yanis.pluess)\
**Post date:** [February 21, 2024, 10:42am UTC](https://forum.bubble.io/t/conditional-statement-not-working-properly-on-show-action/308514/7 "2024-02-21T10:42:46Z")

</div>

No its only used there.

---

<div class="post-metadata">

**Author:** ![artemzheg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/artemzheg/32/9651_2.png) [@artemzheg](https://forum.bubble.io/u/artemzheg)\
**Post date:** [February 21, 2024, 10:59am UTC](https://forum.bubble.io/t/conditional-statement-not-working-properly-on-show-action/308514/8 "2024-02-21T10:59:43Z")

</div>

What are the constraints in your popup _only when…_ condition?

---

<div class="post-metadata">

**Author:** ![yanis.pluess](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yanis.pluess](https://forum.bubble.io/u/yanis.pluess)\
**Post date:** [February 23, 2024, 6:03pm UTC](https://forum.bubble.io/t/conditional-statement-not-working-properly-on-show-action/308514/9 "2024-02-23T18:03:08Z")

</div>

Do a search count \> 0

And it looks for a thing with the nummber in de input field.

Thanks for the help!
