Grasshopper

algorithmic modeling for Rhino

Hi all I have a list of data and I would like to convert and then use it as a pattern.
if my data is empty or null or Nothing then return me 0 or False
if my data is a curve the return me 1 or True


I tried something like that but it doesn't work..can someone help me ?
thanks

Private Sub RunScript(ByVal x As OnCurve, ByVal y As Object, ByRef A As Object)


    If (x <> Nothing) Then
      Print("True")
    Else
      Print("False")
    End If


 End Sub



Views: 176

Replies to This Discussion

Please post the GHX file.
here it is..
Attachments:
If (X Is Nothing) Then
  ...blahblah
Else
  ..blahblah
End If


Reference equality is done with the Is and IsNot keywords, not = and <>

--
David Rutten
david@mcneel.com
Poprad, Slovakia
thanks !

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service