|
|
Wasn't it Rishi who wrote:
>Hi,
>
>Can someone tell me what is wrong with the following:
>
>#declare row=0;
>#while (row < 24)
>#declare col=4;
>#while (col<16)
>object {T_chair translate <col, 0, row>}
>#declare col=col+4;
>#end
>#declare row=row+6;
>#end
>
>#declare row=0;
>#while (row < 24)
>#declare col=-4;
>#while (col>-16)
>object {T_chair translate <col, 0, row>}
>#declare col=col-4;
>#end
>#declare row=row-6;
>#end
>
The problem is with this bit
#declare row=0;
while (row < 24)
. . .
#declare row=row-6;
#end
The value of row keeps getting more and more negative and always stays
below 24.
Try using "while (row >-24)"
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|