# Conditional Statement not working?

**URL:** <https://forum.bubble.io/t/conditional-statement-not-working/263575>\
**Category:** Need help\
**Created:** [May 19, 2023, 4:51pm UTC](https://forum.bubble.io/t/conditional-statement-not-working/263575 "2023-05-19T16:51:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![allainac](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@allainac](https://forum.bubble.io/u/allainac)\
**Post date:** [May 19, 2023, 4:51pm UTC](https://forum.bubble.io/t/conditional-statement-not-working/263575/1 "2023-05-19T16:51:05Z")

</div>

Hello!

I have an app on Version 10 that uses conditional statements to show different buttons in the navigation bar depending on whether a User is logged in or logged out.

“Group Logged In” contains buttons to show when a user is logged in. The checkbox for “this element is visible on page load” is unchecked, and a conditional is set on the group to make this group visible when Current user is logged in.

 ![Screen Shot 2023-05-19 at 12.43.38 PM](https://us1.discourse-cdn.com/bubble/original/3X/6/c/6c9f9ea6df51880eab3b01a42c3fe38733850f97.png)

However, recently, when a user is logged in, the buttons are not visible.

 ![Screen Shot 2023-05-19 at 12.42.43 PM](https://us1.discourse-cdn.com/bubble/original/3X/d/9/d96679dcc927d5ef1646d372fbf524d372e01bc1.png)

The navigation bar should look like this when a user is logged in:

 ![Screen Shot 2023-05-19 at 12.43.14 PM](https://us1.discourse-cdn.com/bubble/original/3X/1/5/15a5e3eb5107532817ba147e801ac776a181fa96.png)

I checked the privacy tabs for any restrictions on the User data type, and there are none. Is this simply a problem with the version of the app? Or is something else going on?

The only recent edits I’ve made were to add code in the header via settings for Google Analytics and Tag Manager.

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![allainac](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@allainac](https://forum.bubble.io/u/allainac)\
**Post date:** [May 22, 2023, 8:19pm UTC](https://forum.bubble.io/t/conditional-statement-not-working/263575/2 "2023-05-22T20:19:55Z")

</div>

UPDATE: I realized the navigation options were programmed as link elements. I still have no clue why they weren’t visible, but I changed them to button elements and this seems to have solved the problem. Any info anyone can provide would still be appreciated.

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [July 28, 2023, 4:51pm UTC](https://forum.bubble.io/t/conditional-statement-not-working/263575/3 "2023-07-28T16:51:50Z")

</div>

Closed on July 28, 2023, 4:51pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
