liquid icon indicating copy to clipboard operation
liquid copied to clipboard

`break` tag behaviour outside of a `for` tag

Open villainous-j opened this issue 9 months ago • 0 comments

Hello! I just wanted to ask a question about break and its behaviour.

In my work, I've noticed that break works outside of a for tag, for example in a rendered snippet or even in a section file. I do find this useful as it allows for a way to halt the proceeding Liquid within the file, without having to wrap all of the code in an if statement.

My question is then, how intentional is this behaviour? Is it something that's at increased risk of changing unexpectedly?

villainous-j avatar Mar 27 '25 20:03 villainous-j