Skip to content

break tag behaviour outside of a for tag #1939

@villainous-j

Description

@villainous-j

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions