Is it possible to break out of a loop in twig? If it is, how would I do it?
Take the 2-minute tour
×
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.
Marion Newlevant wrote a Craft plugin that adds |
|||||||||
|
Currently there is no special build-in command to do it (unless you want to use a plugin, as stated by Brandon Kelly). There is a workaround, however. The workaround is to check for additional condition.
|
|||||||||||||||||||||
|