Skip to content

about_continue advises for loop could become infinite #3709

@msftrncs

Description

@msftrncs

about_continue advises that a for loop who's arguments test a value modified by its statements, it could become an infinite loop. Maybe this could be clarified that 'if those statements are beyond' the continue statement.

Also, it states that execution continues at the first line of the loop, but in technicality it resumes with the argument, which in some circles would be considered an implicit last line of the loop with the first line implicitly being the .


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

area-languageArea - PowerShell syntax and keywords

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions