Waiting for an increment

A place where you can chat about whatever.

Moderators: Faalstar, Kefka

User avatar
Deques
$("#Wai").stupidfy();
Posts: 1913
Joined: Thu May 18, 2006 5:39 pm
Location: Sweden

Waiting for an increment

Post by Deques »

Code: Select all

$wong = 2;

do {
	print_f("Not yet");	
	$wong = waitBaby();
} while ($wong == 2)
User avatar
Ailise
Site Admin
Posts: 888
Joined: Tue Nov 20, 2007 6:24 am
Location: Sweden

Re: Waiting for an increment

Post by Ailise »

don't forget to tell us when the loop is done... we don't want get stuck in an endless loop here :P
User avatar
Deques
$("#Wai").stupidfy();
Posts: 1913
Joined: Thu May 18, 2006 5:39 pm
Location: Sweden

Re: Waiting for an increment

Post by Deques »

Will do!
User avatar
Kassidy
Site Admin
Posts: 2975
Joined: Sun May 21, 2006 10:59 pm
Location: London, UK

Re: Waiting for an increment

Post by Kassidy »

I'm guessing that the response "echo 'congratulations'" is appropriate for that statement. ;)
User avatar
Faalstar
Site Admin
Posts: 909
Joined: Wed May 24, 2006 6:43 pm
Location: Buried in a soup can

Re: Waiting for an increment

Post by Faalstar »

documentation is horrid.
User avatar
DeadWolf
Spikey Tiger
Posts: 1456
Joined: Wed Jan 31, 2007 3:09 am
Location: Deceased

Re: Waiting for an increment

Post by DeadWolf »

Faalstar wrote:documentation is horrid.
User avatar
Dr. Sheexy
Site Admin
Posts: 3870
Joined: Sun May 21, 2006 9:49 pm
Location: Texas

Re: Waiting for an increment

Post by Dr. Sheexy »

Congrats Dekky! :D
Still sad that you decided against naming it Sheexy. :P

Also that's hilarious Faal. XD
User avatar
Kimiko
Tropicallo
Posts: 1200
Joined: Tue Sep 25, 2007 3:14 am

Re: Waiting for an increment

Post by Kimiko »

Congo rats! :D
User avatar
Faalstar
Site Admin
Posts: 909
Joined: Wed May 24, 2006 6:43 pm
Location: Buried in a soup can

Re: Waiting for an increment

Post by Faalstar »

No really, it is.
I'm not a programmer.
I don't know what it means.
User avatar
Ailise
Site Admin
Posts: 888
Joined: Tue Nov 20, 2007 6:24 am
Location: Sweden

Re: Waiting for an increment

Post by Ailise »

Deques wrote:

Code: Select all

$wong = 2;

do {
	print_f("Not yet");	
	$wong = waitBaby();
} while ($wong == 2)
$wong = 2; <-- Deques lastname is Wong, so right now he and his wife are 2.

do { <-- start of loop
print_f("Not yet"); <-- means it will display/write the text "Not yet"
$wong = waitBaby(); <-- this runs some function (unknown to us) that check if Wong family is still 2ppl or 3ppl.
}while ($wong == 2) <-- if the waitBaby()/$wong is still 2, then the loop will begin from do { again. If $wong is something else... like 3. Than the loop will end.
Else it will keep write
Not yet
Not yet
Not yet
....

until the baby comes.

:love: hope i could explain :P
User avatar
Deques
$("#Wai").stupidfy();
Posts: 1913
Joined: Thu May 18, 2006 5:39 pm
Location: Sweden

Re: Waiting for an increment

Post by Deques »

Totally forgot to tell you guys that the loop is broken!

My wife gave birth to a healthy boy last week :)
User avatar
Kimiko
Tropicallo
Posts: 1200
Joined: Tue Sep 25, 2007 3:14 am

Re: Waiting for an increment

Post by Kimiko »

Name? Pictures? ^_^
User avatar
DeadWolf
Spikey Tiger
Posts: 1456
Joined: Wed Jan 31, 2007 3:09 am
Location: Deceased

Re: Waiting for an increment

Post by DeadWolf »

Integers are immutable. Do some garbage collecting.

Oh, and post some pictures.
User avatar
Dr. Sheexy
Site Admin
Posts: 3870
Joined: Sun May 21, 2006 9:49 pm
Location: Texas

Re: Waiting for an increment

Post by Dr. Sheexy »

Congrats Dekky!

Seconding Kimiko and Deadwolf for name and pics!
User avatar
Faalstar
Site Admin
Posts: 909
Joined: Wed May 24, 2006 6:43 pm
Location: Buried in a soup can

Re: Waiting for an increment

Post by Faalstar »

Oh I get it. He had a baby.
Post Reply