Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Conditional loop
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{refimprove|date=November 2023}} In [[computer programming]], '''conditional loops''' or '''repetitive control structures''' are a way for [[computer program]]s to repeat one or more various steps depending on conditions set either by the [[programmer]] initially or real-time by the actual program. A conditional loop has the potential to become an [[infinite loop]] when nothing in the loop's body can affect the outcome of the loop's [[Conditional (programming)|conditional statement]]. However, infinite loops can sometimes be used purposely, often with an exit from the loop built into the loop implementation for every [[computer language]], but many share the same basic structure and/or concept. The [[While loop]] and the [[For loop]] are the two most common types of conditional loops in most [[programming language]]s.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)