Basic help with Block connectors

Hi, complete beginner here. I am using CoPilot to help build a simple app. Its going quite well. But basically I have Button1 which when clicked opens VericalArrangement1, and closes VerticalArrangement2,and Button2 which does visa versa. What im trying to do is when Button1 is clicked if VerticalArrangment1 is open, the 2nd click closes VerticalArrangment1 (and visa versa Button2). Now CoPilot is asking me to put ‘IfThenElse’ block into ‘WhenButton1 click’ block but i dont think they are compatible. help please.

imagine i have three buttons in a horizontal arrangements

and three vertical arrangemets next to this HA and initially i set all the vertical arrangement visible to false

you should make list of buttons and the vertical arrangements

if so then follow this blocks

like this make a sample and add one lable in each VA so that you will come to know how it is working