My use case is a timeline, where each acf repeater line is one event on the timeline. In some parts of my website i now only want to show the last element of the timeline like a “current status”. Since the timeline can have “n” events, i cannot directly address this line. I also tried adding a condition to the query widget that only matches if the query is in its last iteration, but that only works for inner elements and not the root query widget, leading to empty divs in the DOM.
I would love to see a check implemented that if the loop element is completely empty except for the root widget, to not render the root widget.
Example with a custom function to return the current loop index:
Btw a dynamic data tag for the current loop index would be lovely as well
Let me know your thoughts