Skip to content

Broken {breakIf} and {continueIf} when inside {if} #239

@kukulich

Description

@kukulich

Version: 2.9.0

Bug Description

{breakIf} or {continueIf} macros throw Latte\CompileException with message Tag {continueIf} is unexpected here

Steps To Reproduce

{var $buttons = [[null, 1000]]}
{var $min = 2000}
{foreach $buttons as [$buttonMinValue, $buttonMaxValue]}
	{if $buttonMinValue === null}
		{continueIf $buttonMaxValue < $min}

		{* other code *}
	{/if}
{/foreach}

Expected Behavior

It should work as in 2.8 if it's possible :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions