The Dink Network

if (&crap == 1 && &morecrap == 1) ???

August 4th 2002, 04:29 AM
goblins.gif
Dukie
Peasant He/Him
 
Ok, at first I thought dink c supported if (&var == 1 && &bar == 1) statements(?) but then I wasn't sure, so I'm asking now:

Has anyone ever tried to make something like this work? Or am I wasting my precious time?

August 4th 2002, 04:47 AM
pq_skull.gif
: Ok, at first I thought dink c supported if (&var == 1 && &bar == 1) statements(?) but then I wasn't sure, so I'm asking now:

: Has anyone ever tried to make something like this work?  Or am I wasting my precious time?

I don't think that would work, instead, you would use...

if(&crap == 1)

{

if(&morecrap == 1)

{

bluh

}

if(&morecrap == 0)

{

bluh

}

}

or something like that, I think that'd work, that is if I know what you're talking about... I think I do...



August 4th 2002, 04:52 AM
stonegiant.gif
hmmm...it'd be interesting to know HOW closely based on C dinkC is... the || operator could be really usefull too...

when you find out, tell us, ok??

thanks.
August 4th 2002, 08:24 AM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
: hmmm...it'd be interesting to know HOW closely based on C dinkC is... the || operator could be really usefull too...

: when you find out, tell us, ok??

: thanks.

you cannot do it.
August 4th 2002, 08:31 AM
goblins.gif
Dukie
Peasant He/Him
 
: : Ok, at first I thought dink c supported if (&var == 1 && &bar == 1) statements(?) but then I wasn't sure, so I'm asking now:

: : Has anyone ever tried to make something like this work?  Or am I wasting my precious time?

: I don't think that would work, instead, you would use...

: if(&crap == 1)

: {

:  if(&morecrap == 1)

:  {

:  bluh

:  }

:  if(&morecrap == 0)

:  {

:  bluh

:  }

: }

: or something like that, I think that'd work, that is if I know what you're talking about... I think I do...

Ok, I knew how to do that, but thanks anyway.

It's just that this makes my scripts huge and hard to oversee..

Anyway, you could've tried it

August 4th 2002, 08:33 AM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
Unfortunatly, he is right. Dink only supports nested loops and not complex if statments...I also wish I caould use for() loops in it but oh well.

--WC
August 4th 2002, 08:34 AM
goblins.gif
Dukie
Peasant He/Him
 


August 4th 2002, 09:10 AM
wizardg.gif
Paul
Peasant He/Him United States
 
: hmmm...it'd be interesting to know HOW closely based on C dinkC is... the || operator could be really usefull too...

: when you find out, tell us, ok??

: thanks.

Instead of just making to if statments with whatever code I need run in either case, I sometimes do this to simulate an OR.

int &value = 0;

if (&crap == 1)

&value = 1;

if (&morecrap == 1)

&value = 1;

if (&value == 1)

{

//do stuff

}

This is particularly worth doing if "do stuff" is many lines long.
August 4th 2002, 09:14 AM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
When the heck you going ot release a d-mod? Stop producing movies and produce some d-mods!

--WC
August 4th 2002, 10:05 AM
goblins.gif
Dukie
Peasant He/Him
 
: When the heck you going ot release a d-mod? Stop producing movies and produce some d-mods!

: --WC

Hey, I just started working on the Dink Hotel again, leave me alone It's still going to be the funniest d-mod ever packed full (or half full) with never before seen stuff and things like that..

But I have little time and I need to get back in the routine.

Speaking of that, when is _your_ next d-mod coming out?
August 4th 2002, 11:25 AM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
Second Tuesday of next week.

--WC
August 4th 2002, 07:03 PM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
: Second Tuesday of next week.

: --WC

hey, wait a second...