Until loops are just the opposite of whiles. If the control statement evaluates to false code within the loop is executed once and repeated until the control statement tests to true.
Heres a quick example:
I suggest if you've just survived that harrowing ordeal you learn all about do while loops
Heres a quick example:
$year=1900; until($year==2000){ print "Mission-critical electronics working in the year $year\n"; #now it works; $year++; } print "Not working anymore\n";As you can see the mission-critical electronics work until the year 2000.
I suggest if you've just survived that harrowing ordeal you learn all about do while loops
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: until loops
by turnstep (Parson) on May 24, 2000 at 05:01 UTC | |
Re: until loops
by Frey (Novice) on May 13, 2001 at 20:34 UTC | |
by Anonymous Monk on Sep 03, 2003 at 09:44 UTC | |
RE: until loops
by Anonymous Monk on May 05, 2000 at 20:27 UTC | |
RE: until loops
by Simplicus (Monk) on May 22, 2000 at 21:57 UTC | |
by Anonymous Monk on May 24, 2000 at 04:35 UTC | |
by Anonymous Monk on Jun 28, 2000 at 05:11 UTC | |
by ApoxyButt (Initiate) on Jun 30, 2000 at 21:57 UTC | |
by Anonymous Monk on Feb 07, 2001 at 07:09 UTC | |
by Anonymous Monk on Mar 05, 2001 at 03:11 UTC | |
Re: until loops
by lvanhout (Curate) on Jun 16, 2004 at 05:11 UTC | |
by apotheon (Deacon) on Oct 11, 2004 at 00:05 UTC | |
Unless vs. Until?
by inblosam (Monk) on May 22, 2002 at 06:53 UTC | |
by jeffenstein (Friar) on May 22, 2002 at 07:03 UTC |
Back to
Tutorials