Check if a nested repeat returns nothing

Hello,
I have a nested repeat.

I want to
(1)when inside the nested repeat I want to check a value. And if value==1 to dispay a button
or
(2)If there is no value at all to display another button

My issue is that if the nested repeat is empty, it does not run at all so I can only make the check for values that do actually exist in the nested repeat. If empty (the nested repeat), it does not run at all hence, I can not make any check.

Any ideas on how to check this?

Thank you!!!

To make it more precise. When the nested repeat is empty I get this

nested_repeat: []

How to make a condition on the front end to check the above and display an element

Thank you!

Have you tried using the count formatter to check how many records are returned?

1 Like

Will do ty!

That did the trick.
Thank you!