[OpenSCAD] OpenSCAD Digest, Vol 23, Issue 11

Marius Kintel marius at kintel.net
Sun Oct 23 22:34:02 CEST 2011


On Oct 23, 2011, at 20:14 PM, nop head wrote:

> Actually it does work. I forgot that you need a boolean. This works:
> 
> function toto(k) = k > 0 ? toto(k - 1) + k : 0;
> 
This was an oversight. You can now use any expression. The value will be converted to bool in the same way as for if/else.

 -Marius



More information about the OpenSCAD mailing list