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

khackbarth ken at volksswitch.org
Thu Apr 26 16:46:01 EDT 2018


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.

I've tried using str() and search() and have gotten close but the "11" above
is matching with i+j = 1.

Any suggestions?

Ken



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



More information about the Discuss mailing list