alternative to if - then statements in parameters
Say I have a block that contains a solid with a parametric length “L” and another solid with a length of “L2”.
Here’s what I want: If L is 100 – 200, I want L2 to be X, and if L2 is 201 – 300, I want L2 to be Y.
I would like to use an if then statement but Bricscad doesn't support this as far as I know. Are there any simple solutions?
thanks.
0
Comments
-
It is possible but perhaps not simple:
(((min(ceil(max(L, 200)), 201)) % 200) * (Y - X)) + X
0 -
Thanks, I'll give it a try.
0