πŸ” Repeat While

The πŸ” statment repeats a code block while as long as the given condition is πŸ‘ (true). And if the condition is never πŸ‘ (false), the code block will be ignored and skipped.

Due to the ease of use of the πŸ”‚ (for-in) statement, πŸ” is only used seldomly.

Infinite Loop

🏁 πŸ‡
πŸ” πŸ‘ πŸ‡
πŸ˜€ πŸ”€It goes on and on and onπŸ”€β—οΈ
πŸ‰
πŸ‰

This program will infinitely print β€œIt goes on and on and on”.

It goes on and on and on
It goes on and on and on
It goes on and on and on
...
Edit this page on GitHub

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your feedback.

Learn Emojicode on Codecademy

Edit this page on GitHub

Contributors