I want to create a variable in panel

Hi there, I’m trying to create this structure, where in the panel the first-to-middle position would be true, and the consequential would be false. There is nothing wrong with that, but when the number of lines change, it would not work anymore, since I physically add a true or false to each line. Do you guys know a way to make it change according the number of lines?assign2.gh (16.5 KB) assign2.3dm (3.2 MB)

Hi again,

Please be aware that current layout solution only works for even vertical, divisions, since it relies on a center line.

assign3.gh (17.0 KB)