πŸ” Repeat While

Published Aug 4, 2021Updated Sep 9, 2021
Contribute to Docs

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
...

All contributors

Looking to contribute?

Learn Emojicode on Codecademy