Skip to content

break keyword returns to the first loop in a given function #48

@Sargeanthost

Description

@Sargeanthost

Refer to below images:

image
image
image

It seems like the break keyword jumps to the end of the first for statement in the function, as rand gets reassigned and "SOW" prints again. This currently bricks the game as it runs an infinite loop (this should aslo be an enhancement as zs should detect infinite loops and, if anything, just break and log the loop and cause unintended behavior--instead of freezing the game)

Edit: ignore the youtube link that was for my reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions