generative modeling for Rhino
I'm wondering what the term is for checking if an integer (or double) input is null in a custom VB component.
I though is was "Nothing" but 0 counts as nothing so that doesn't do the trick.
You can't. Numbers are structures so you can use Integer (System.Int32) as value but not as reference. This implies that there is no Nothing/null for it. You could instead use Object, and the value will be boxed into a reference, so there will be Nothing again.
If you were writing the code, then the solution would be to use Nullable(Of Integer). But this is not the case in the input of the function of the custom scripting component.
Ok thanks Giulio