Grasshopper

algorithmic modeling for Rhino

All, I'm stuck on turning "null" values in a list into "0" values.

I tried this conversion routine I saw in a previous thread...no luck so far

If anyone has an example file they can upload, greatly appreciated!

Views: 1719

Replies to This Discussion

Very simple C# script:

if (x == null)
    {
      A = 0;
    }
    else
    {
      A = x;
    }

Attachments:

In 0.9.0002

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service