Test for _SinglefunctionObject

I’m trying to write a node where one of the input values may not be provided.

When the value is not provided the GetParameterValueByName node results in “_SinglefunctionObject”. I want to test for this and provide another value.

I tried isNull and isEmpty but neither return true when the value is “_SinglefunctionObject”.

Is there another way of testing for a non-value?

Dynamo 0.91 introduced a new OOTB node called “Object.Type”. It returns the type (class) name of the input as a string. If you want to test if something is a “_SinglefunctionObject”, you could try the following:


I ended up testing whether the parameter string was empty or not rather than test the returned parameter value.

Designscript in a codeblock did the trick.