[OpenSCAD] for loop in a function

Mint86 eric23b at gmail.com
Tue Apr 10 19:34:28 EDT 2018


Hi

I haven't been able to get a for loop working in a function. I'm trying to
add the values in a vector from a start point to an end point. 

Something like this:

AVector = [2,5,3,11,4];
start = 1;
end = 3;

//addVector would return 19

function addVector (aVector,start,end)

Any help would be great. Thanks!



--
Sent from: http://forum.openscad.org/



More information about the Discuss mailing list