hi
if my function has several lines
say f(x) is calculated by :
what is the syntax in openscad ?
i dont really understand where to whatch here to have the answer :
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/User-Defined_Functions_and_Modules#Functions
--
Sent from: http://forum.openscad.org/
Your function body didn't make it through.
On Mon, May 14, 2018 at 11:24 AM, vincent_mathoscope <
mathoscope@netcourrier.com> wrote:
hi
if my function has several lines
say f(x) is calculated by :
what is the syntax in openscad ?
i dont really understand where to whatch here to have the answer :
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/User-
Defined_Functions_and_Modules#Functions
--
Sent from: http://forum.openscad.org/
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
--
"Rumors of my death have been greatly exaggerated."
-- Jesus Christ
Roughly speaking, the function goes from the spot where you have "function"
until there's a semicolon.
You can check the manual for examples (like the one for quicksort) that
might clarify things.
--
Sent from: http://forum.openscad.org/
A function in openscad is an expression. That can be as long as you want
but you can't have statements like other languages. You can use let() to
assign sub expressions to variables and ? : to have conditionals.
On 14 May 2018 at 17:15, NateTG nate-openscadforum@pedantic.org wrote:
Roughly speaking, the function goes from the spot where you have "function"
until there's a semicolon.
You can check the manual for examples (like the one for quicksort) that
might clarify things.
--
Sent from: http://forum.openscad.org/
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org