Breaking up facades into sections

I'm just learning cityengine and am trying to break up the ground floor layer into sections. My building is a fairly complex hexagonal shape with multiple sides but I only want entrances on two of the sides, and tiles on the rest. How do I write the code to achieve this? Is there a way to assign each side a different name or something so that only some sides contain doors?

after extruding your hexagonal shape, use the comp(). when using the side selection, pass on the comp.index as an argument to the next rule. this will give each facade an index with which you then can work.

Here's the code :

[ did not check the code, just writing it down here ]

Try this, then adapt the indices below in the code ( currently 0 and 1 )