# Conditional logic display

**URL:** <https://forum.adalo.com/t/conditional-logic-display/20408>\
**Category:** Get Help\
**Created:** [December 3, 2021, 6:10pm UTC](https://forum.adalo.com/t/conditional-logic-display/20408 "2021-12-03T18:10:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![danbotch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@danbotch](https://forum.adalo.com/u/danbotch)\
**Post date:** [December 3, 2021, 6:10pm UTC](https://forum.adalo.com/t/conditional-logic-display/20408/1 "2021-12-03T18:10:50Z")

</div>

Hello adalo’s

I am trying to display a comment list based on the conditional logic of whether the logged in user has posted onto the comment list.

**Attempt 1: Visibility conditional**  
Initially I have tried to set the visibility of the comment list must contain the logged in user’s username.

 ![Screenshot 2021-12-03 at 18.00.46](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/b/b5a89c4e2db37fd225133414d4653eaab5639b76.jpeg)

_Issue:_  
All that appears on preview is an infinite loading wheel.

 ![Screenshot 2021-12-03 at 18.01.23](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/7/7369eec37a81cd1121036977870fae75592def2d.png)

**Attempt 2: Visibility logic based on user comments**  
My second attempt was to set a visibility condition based on a user’s comment appearing on the comment list.

 ![Screenshot 2021-12-03 at 17.58.02](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/c/cb9269106ba7b4efb460e822dbc1f63121feaadb.jpeg)

**Attempt 3: Custom filter logic based on user comments**  
3rd attempt was to set visibility through custom filters and user’s comments appearing in the comment table. I fall into the same issue and can’t link to the user/comment table

 ![Screenshot 2021-12-03 at 17.55.27](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/d/d1b98317e4153f9cf7baf03a829ce80ac9a96d21.jpeg)

_Issue:_  
I get stuck and can’t find anything to link to the user/comment table.

Can you advise on this please or hoping you’ve spotted something I’ve missed completely.

Many thanks in advance, Dan

---

<div class="post-metadata">

**Author:** ![williankober](https://avatars.discourse-cdn.com/v4/letter/w/3bc359/32.png) [@williankober](https://forum.adalo.com/u/williankober)\
**Post date:** [December 3, 2021, 6:45pm UTC](https://forum.adalo.com/t/conditional-logic-display/20408/2 "2021-12-03T18:45:48Z")

</div>

Hello Dan,

Have you tried…

**Current Post \> Comments \> Count**

**filter**  
Comment \> Username  
**is equal to**  
Logged in user \> Username

**Greater or equal to**  
**1**

I hope this works. I know there must be different ways of doing this. But that is all it came to mind right now.

Klaus

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [December 3, 2021, 6:53pm UTC](https://forum.adalo.com/t/conditional-logic-display/20408/3 "2021-12-03T18:53:02Z")

</div>

Hi Dan 👋

Welcome to the community 🥳

Or this way.

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/1/1ef77946ad9b3152f4fd1a8f8f384abd96f5fb0e.png)

Thank you

---

<div class="post-metadata">

**Author:** ![danbotch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@danbotch](https://forum.adalo.com/u/danbotch)\
**Post date:** [December 6, 2021, 9:35am UTC](https://forum.adalo.com/t/conditional-logic-display/20408/4 "2021-12-06T09:35:36Z")

</div>

Thank you @Dilon and @williankober - I’ll try these and let you know how it goes

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [December 6, 2021, 12:20pm UTC](https://forum.adalo.com/t/conditional-logic-display/20408/5 "2021-12-06T12:20:40Z")

</div>

Your welcome 👍

And if the creator of the post can’t create a comment then this condition will not match and the creator of the post can’t see the comments. So for that you can add another list and add a condition. If you need a help here’s a clonable app that I created.

> **[Comments](https://previewer.adalo.com/3f2d5e8b-73f0-4e2d-83e9-e59975a99bcb)**
>
> Built with Adalo

Hope it helps!

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [December 16, 2021, 12:21pm UTC](https://forum.adalo.com/t/conditional-logic-display/20408/6 "2021-12-16T12:21:08Z")

</div>

Closed on December 16, 2021, 12:21pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
