Skip to content

Break statement #26

@achxkloel

Description

@achxkloel

Break statement does not work inside conditional statements in while loop.

Example:

require "ifj21"

function main()
	local foo : integer = 1
	
	while foo do
		if foo then
			break
		end
	end
	
	write("hello\n")
end

main()

Output:

Error at line: 311
Label does not exist!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions