Color the rooms based on numeric value list

Morning to all,

I have a list of three rooms (green squere) eatch whit a numeric binari value that express if the room respect or not two conditions (ex. if the room “n” dosn’t respect none of the two condition the value is “00”, if respect both value is “11” if respect only one is “01” or “10”.)

I would like to color the rooms based on the binary value like this: in green if “11” …bla bla bla and… red if “00”, i’ve tried to color by “IF” node but i can’t concatenete the “IF” node for obtain what explained.

thanks in advance!

P.S.: i have made the volume of rooms whith the “InportInstanceByGeometry” node.

dynamo file attached:


script_RAI.dyn (270.3 KB)

You probably should make habbit of not renaming the Nodes if your going to ask for help.
Takes a while to figure out what the node is sometimes.

If your color split of elements is only something like 4 or 5 groups then you could use this as a solution maybe?

2 Likes

sorry for the renomination of nodes, and thank you a lot for the solution! it works perfectly