Can a Value List only output numbers?


I have a quick question! Can a Value List only output numbers (floats, integers)?
When I set a value to a string it outputs null for that Key/Name (even when I set the text without double quotes)!

Is this standard behaviour or a bug in the macOS version?


On Windows one can define and output strings:

1 Like

Thanks for reporting it! I’ve added it to our bugtrack list:

1 Like

@Bernat, another curiosity is that pre-configured Value Lists, stemming from Windows, output strings on macOS. Adding a new string to these Value Lists also breaks the component.

Have you tried using only the labels when editing the Value List?


When I do that in Windows 10, Grasshopper apparently adds the = “label” on its own. Maybe the typed quote character isn’t being handled correctly on the Mac?


1 Like

Indeed, when I only add the labels the string output works. Weird!

Hey @p1r4t3b0y,

Thanks for reporting the issue. This is most likely because the double quotes are being replaced with surrounding double quotes. “Hello” vs. "Hello". The control itself can and should disable this, which I’ll fix up.

In the meantime, you can fix this by going to System Preferences > Keyboard and unchecking “Use smart quotes and dashes”, then re-typing the quotes.

Hope this helps!

1 Like

Could be that this is also an issue, but it also happens without double quotes.

I don’t think so; this does not work on Windows either. Double quotes are required for text values it seems.

1 Like