Override elements colour based on IF condition

Hi,

Is there a way to override the colour of some elements based on an IF statement?? I have a set of Yes/No Type parameters for some elements, want to get them and if let’s say that if 3 of them are Yes (1) and the others No (0), colour the elements Red, if No colour them Blue.

Thank you.

You probably can count YES items and use conditional node generate color.

If it’s just for a view you could use dynamo to set all your yes/nos and then set up a view template with filters that set your colours

This should help Change color of elements depending on distance from crane

Thanks All !

Find attached what I needed and works.

Kind regards.
John.

If you could share your file, you’d get suggestions on optimizing the workflow to make it a lot more efficient.