$correct = false; // until otherwise do { ... prompt ... if (validation check) { $correct = true; // often 'last' here to end loop } say("You have chosen the wrong number") } until ($correct)
In reply to Re: Looking for a loop
by Anonymous Monk
in thread Looking for a loop
by WisDomSeeKer34
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |