GetDotted Domains

Viewing Thread:
"WHILE within a WHILE"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Tue 10/08/04 at 17:22
Regular
"Pouch Ape"
Posts: 14,499
Ok, I can't get into my ftp folder at the moment, but I'm assuming that if I did the following:

$i = 5;
$j = 10;
while($i > 0)
{
does something;

while($j > 0)
{ does something; $j--; }

$i--;
}

then the WHILE inside the first WHILE loop would run before finishing the original loop...?
Tue 10/08/04 at 18:59
Regular
"Pouch Ape"
Posts: 14,499
Cheers. I've actually sorted this since, but thanks anyway.
Tue 10/08/04 at 18:49
Regular
"Eff, you see, kay?"
Posts: 14,156
Yeah. Your inner while will only run once unless you reassign $j somewhere inside your outer loop.
Tue 10/08/04 at 17:22
Regular
"Pouch Ape"
Posts: 14,499
Ok, I can't get into my ftp folder at the moment, but I'm assuming that if I did the following:

$i = 5;
$j = 10;
while($i > 0)
{
does something;

while($j > 0)
{ does something; $j--; }

$i--;
}

then the WHILE inside the first WHILE loop would run before finishing the original loop...?

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Unrivalled services
Freeola has to be one of, if not the best, ISP around as the services they offer seem unrivalled.
Top-notch internet service
Excellent internet service and customer service. Top-notch in replying to my comments.
Duncan

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.