πŸ” 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
...

Contributors

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

Learn Emojicode on Codecademy