Skip to content

[feature] multi-level break #27

@RiedleroD

Description

@RiedleroD

sometimes it so happens that I need to break out of multiple loops at once. for that, some languages have break <n>, where n is the number of loops to break out of.

for i in {1..3}; do
  for j in {2..5}; do
    if [[ $j == $i ]]; then
      break 2
    fi
  done
done

Metadata

Metadata

Assignees

Labels

analyzerThis issue is related to the analyzercompilerThis has to do with the bytecode compilerenhancementNew feature or requestruntimeThis issue is related to the runtime

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions