
- By Sonya
Roberts
When we "nest" a series of commaned, this means to place each command within the bounds of the previous commands. In the context used here, we would take advantage of the fact that our variable can only have one value, so that only one of the #if statements can be true, and arrange them into a slighty more optimized structure. This would result in the following series of #if...#else...#end commands:
#if (Legstyle=1)
...
#else
#if (Legstyle=2)
...
#else
#if (Legstyle=3)
...
#end
#end
#end
Arranged like this, each #if statement would be tested only if the previous one failed (evaluated as being false).
<Crystal Clarity>
<Topas Try Me's> <Povabilities> <Soap Box> <Cranky's
Corner>
<Top><Home>
<CG Web Board> <Contact>
The Rendering Times: Design
and Copyright © 1997 -- DCS & WorkForce Graphics. All rights reserved.
Reproduction in whole or in part in any form or medium without
the express written permission of DCS and/or WorkForce Graphics
is prohibited.