Problem with room dividing line while creating automating finishing walls from room

Hello !!
I made a script that takes rooms and make finish walls from it and its working fine . Actually it collects rooms, thenm takes its boundary curves to polycurves, offsetting and using these curves for wall base. But when we use Room dividing line between two rooms, i want there no wall while my code still makes all 4 walls for a room as seen in below pictures.

I want no wall on side of room where there is room dividing line but only those sides of rooms where already walls are there.

Here is my script:

Graph isn’t legible, but…

  • Use the clockwork package node room.boundaries to get the curve list and the element list for each room’s curves.

  • Get the category for each bounding element.

  • Test the category to see if it is not equal to the room separation line category.

  • Use this list of booleans to filter the list of curves from the Room.Boundaries node.