Skip to content

For Loop Bug #189

@Aldrin-John-Olaer-Manalansan

Description

For Loop always guarantees one iteration when passing variables as its parameters

2@ = 0
for 0@ = 1 to 2@ // the same as: for 0@ = 1 to 0
	0AD1: show_formatted_text_highpriority "%d %d" time 2000 0@ 2@
end
1@ = 1
2@ = 0
for 0@ = 1@ to 2@ // the same as: for 0@ = 1 to 0
	0AD1: show_formatted_text_highpriority "%d %d" time 2000 0@ 2@
end

The For loop should not continue executing inside if its two parameters were out of bounds.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions