|
-
Sep 7th, 2001, 09:29 AM
#1
Thread Starter
Lively Member
Best way
Hey Guys
I was wondering what would be the best way of doing something in you opinion
i want to carry out code if depending on the value of two variables so i don't knwo wether nested case statements or 2 stament if staments would be better.
so i would have
switch(I)
{
case 0:
{
switch (d)
etc
or
if ((d == 0) && (i = 0))
i am currently doing it with ifs but is thsi teh best way to do it i meean which way is more efficent.
Cheers
Peter
"Let's all join forces, rule with an iron hand...and prove to all the world, metal rules the land..."
-- Judas Priest
My email is [email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|