How to count Cards (v1)

Hi, is there a way to know how many cards are present in a group (specifically I’d need to know when there is none) ?

F7 v1

Thanks

Depends on your HTML layout and how do you use it, but probably you can check amount of HTML elements with $('.card').length

Thanks for pointing me in the right direction:

I sorted with this:

if ($$(’.card-header’).length<=1) {
$$(’.buttons-row’).hide();
}