in reply to Looking for a loop
$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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Looking for a loop
by jeffenstein (Hermit) on May 28, 2018 at 16:31 UTC |