[OpenSCAD] "lookup" with strings? a bug?
openscad at jordan.maileater.net
Wed May 29 16:43:25 EDT 2019
On 5/29/2019 1:39 PM, Serge wrote:
> wait whaaaat?? I'm using search("top", … searching for "top" why it
> returns me "type"? who wrote this rap?
See the documentation and my note about how if you're searching for a
string you need to make it be an array containing only that string.
When you just say "top" it's interpreted as "search for t, o, or p".
> On 5/29/19, nop head <nop.head at gmail.com> wrote:
>> Lookup is for numerical interpolation. You need search for strings,
>> On Wed, 29 May 2019 at 17:34, Serge <moneyforidea at gmail.com> wrote:
>>> Is lookup function searches for keys which are strings? say
>>> <b> lookup("foo",myArray)? </b>
>>> I get undef back. Is this a bug?
>>> what's the good Strings functions library for OpenScad?
>>> OpenSCAD mailing list
>>> Discuss at lists.openscad.org
> OpenSCAD mailing list
> Discuss at lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss