Reply to Re: dinkc question
If you don't have an account, just leave the password field blank.
: Nope, you would have to use nested loops (I assume you know what the means due to it looks like you've had some programming experience).
: --WC
What do you mean nested loops? I thought they asked about ifs.
WC's right though, you one comparison per if only.
For AND you use nested ifs, for OR you can use either two seperate ifs or set a flag like this:
&flag = 0;
if (&a == 1)
&flag = 1;
if (&b = 1)
&flag = 1;
if (&flag = 1)
{
//do stuff.
}
: --WC
What do you mean nested loops? I thought they asked about ifs.
WC's right though, you one comparison per if only.
For AND you use nested ifs, for OR you can use either two seperate ifs or set a flag like this:
&flag = 0;
if (&a == 1)
&flag = 1;
if (&b = 1)
&flag = 1;
if (&flag = 1)
{
//do stuff.
}