It would probably be easier if you posted a real example of an if tree that you don't like.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Dave's right we need more context. It sounds like you might be looking for the switch statement.
switch(expression)
{
case constant-expression : statements; break;
.
.
<em>n</em>
default : statements;
}
hollystyles
Veteran Poster
1,182 posts since Feb 2005
Reputation Points: 262
Solved Threads: 68