On Iron Python components, the default value provided by the Grasshopper end for an unconnected input Param is None. So if you’re not passing in 0, '', [] or False in there, (or if one of them is the default) you can do x = x or default_value. Otherwise use e.g. x = default_value if x is None else x
Thank you very much for your reply
But I not really get your point
IMHO my code above is already coding as your suggested.
but the point is Complied Component on Rhino 8 is force warning message and will not run if all input are not fullfil.
i think in rhino 8 you are not using the standard python3/ironpython components.
they seem to come from a plugin called user.gh, which i don’t have. in anycase, if you use standard script components, everything works as expected