Displaying message if a loop is empty

In CCS I used to use:

[if empty]This is empty![/if]

Is there something similar in L&L? I’ve tried using statements with count & total but can’t see to get any messages to show.


Hello, thank you for the question. There’s a feature called If loop exists, which is currently missing from the documentation. I’ll make sure to add a section about it.

Here is an example.

<If loop exists type=post name=example>
    <Field title />
<Else />
  Nothing found.

As you can see, the difference with [if empty] in CCS is that the If tag goes outside of the Loop.

Here is the new documentation page about this feature.


Works perfectly, thanks!

1 Like