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

Ronaldo rcmpersiano at gmail.com
Sun Oct 30 09:45:33 EDT 2016


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.




More information about the Discuss mailing list