Empty line on list

Hello there!

I’m working on a solution that can make dynamo write to a door-parameter based on a boolean parameter value from its host wall.

My problem is that if the boolean in revit is left neither yes or no, it appear as nothing in my list i dynamo. If I try to use the value from the walls for the door parameter, dynamo runs the file but with warnings.

Are there a way to fill in empty lines with ex. zero?

billed 2

You could add in in a code block:

x == 1 ? 1 : 0

That says, if x = 1, then make it 1, and if it doesn’t, make it 0 (assuming here that 0 is your preferred default toggle).

Works like a charm!

Thank you, Sol Amour :slight_smile: