[OpenSCAD] Fwd: Re: taking customizer input and using it in a pair of nested loops

Michael Frey michael.frey at gmx.ch
Fri Apr 27 01:19:11 EDT 2018


Opps - replied to the user to not the list, so I just forward it now 
also to the list.


-------- Forwarded Message --------
Subject: 	Re: [OpenSCAD] taking customizer input and using it in a pair 
of nested loops
Date: 	Fri, 27 Apr 2018 06:24:28 +0200
From: 	Michael Frey <michael.frey at gmx.ch>
To: 	khackbarth <ken at volksswitch.org>



On 26.04.2018 22:46, khackbarth wrote:
> I'd like the user to be able to provide a comma separated string as input,
> e.g., "2,4,11,8" and then use that information inside a nested For loop to
> decide whether to perform an action.  For example, if the sum of the two
> loop counters is one of the numbers in the string then don't do the action.
Hi Ken,

Silly question:
Why don't you use an array/vector like

Vector6=[12,34,44,43,23,23];

I mean, there are some limitations, like the default assigment having to 
have more then 4 elements, but the user can use any Vector length for 
his inputs.

With kind regards,
Michael Frey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20180427/585468c0/attachment.html>


More information about the Discuss mailing list