[OpenSCAD] "lookup" with strings? a bug?

Serge moneyforidea at gmail.com
Wed May 29 16:39:04 EDT 2019


wait whaaaat?? I'm using search("top", … searching for "top" why it
returns me "type"? who wrote this rap?

On 5/29/19, nop head <nop.head at gmail.com> wrote:
> Lookup is for numerical interpolation. You need search for strings,
> https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#Search
>
> 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
>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>>
>



More information about the Discuss mailing list