Updating dynamic variable in loop #7285
-
Hi. I have a page with Related Entries (bard block Entries) in it. Like:
I also have a dynamic variable named {{ found = 0 }} in the antlers template. Is there a way to update that variable while looping through related entries, and getting it later in the template? Here's complete example:
Currently everything what happens in {{ related_entries }} loop stays in it, so {{ found }} variable does not get through. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Are you using the new (runtime) parser? |
Beta Was this translation helpful? Give feedback.
-
Turns out it was just a classic PEBKAU. All good. |
Beta Was this translation helpful? Give feedback.
Turns out it was just a classic PEBKAU. All good.