|
![](/i/fill.gif) |
"SharkD" <nomail@nomail> wrote:
> "Trevor G Quayle" <Tin### [at] hotmail com> wrote:
> > You could try:
> >
> > #declare LATRANGE=select(90-SphereGrid_value,1,2,3);
> >
> > #switch (LATRANGE)
> > #case(1) //Do this for angle < 90
> > #break
> > #case(2) //Do this for angle = 90
> > #break
> > #case(3) /Do this for angle > 90
> > #break
> > #end
> >
> >
> > There may be other more elegant ways...
> > -tgq
>
> No, I was wondering if it would be possible to pass conditional statements to
> the #case calls. This is not the case, so I'll just stick with what I've got.
Unfortuneately the #range keyword is inclusive at both ends ( a<= value <= b).
You could place a #case(90) statement first in the #switch block, and it should
capture the '90' value, then follw with the two #range (or one #range and one
#else), but this seem progamatically a bit sloppy.
-tgq
Post a reply to this message
|
![](/i/fill.gif) |