I’m dealing with a rather difficult challenge: I’d like to make a dynamic component that contains cabinets. I’d like to make the component scalable in one direction, in this way, that the more I stretch it, the more cabinets doors will appear.
Now I can make a ‘fence-like’ component that adds copies of the cabinet doors and positions them according to the total length of the component. However, I’d like to add something extra:
I want my doors always equally divided over the total length. So let’s say, at a total length of 1,5 meter, I’d like to see 3 doors, equally divided. When I stretch my component until 2 meter, I’d like to see 4 doors. When I make my component 1,75 meter, I like to see either 3 or 4 door, depending on the following: When my door width exceeds a certain number (let’s say 55cm), I’d like my component to add a 4th door automatically.
I figured I have to use the ‘IF’ functionally somehow, but I can’t get my head around it. Hopefully there’s someone out there with lots of experience and a well working brain!
Thanks in advance.