[OpenSCAD] Any where to find the doc for lc-each, lc-else and lc-for-c ?

nop head nop.head at gmail.com
Sun Oct 30 11:02:23 EDT 2016


Presumably, by using each you could add a different numbers of elements in
the else part, which you can't do with a ? : expression.

On 30 October 2016 at 13:45, Ronaldo <rcmpersiano at gmail.com> wrote:

> runsun wrote
> > But I am a bit wondering what's benefit of it over this shorter one:
> >> list = [ for (a = [ 1 : 8 ]) (a % 2 == 0)? a : a*10 ];
>
> There is benefit in some nested tests and filters:
>
> > list = [ for (a = [ 1 : 8 ]) if (a % 2 == 0) a else if (a!=1) a*10 ];
>
>
>
>
>
> --
> View this message in context: http://forum.openscad.org/Any-
> where-to-find-the-doc-for-lc-each-lc-else-and-lc-for-c-tp18823p18827.html
> Sent from the OpenSCAD mailing list archive at Nabble.com.
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20161030/b3888c06/attachment-0002.html>


More information about the Discuss mailing list