Is there a “break” tag to escape a loop in Liquid?

前端 未结 1 567
忘掉有多难
忘掉有多难 2020-12-18 17:58

How do I break out of loop in Liquid, mainly a for-loop? I\'ve tried {% break %}, but that fails with There were errors saving your file: Unknown tag \'brea

相关标签:
1条回答
  • 2020-12-18 18:22

    For future visitors. Above code does work in current Liquid (gem v2.5.1).

    0 讨论(0)
提交回复
热议问题