Button for hiding and showing content
To create a button that has the function to show or hide any element on the screen just follow these steps: 1 - Create a button and an element (this is the element you want to be shown or hidden according to the interaction with the button you made). Then uncheck the box visible in the configuration box of the element.
2 - Go to “Blocks” screen. You should organize a code like this. For that, follow the tips below.
- Get the first piece “When Button 1. Click. Then get the piece “If then” in Control. Notice that there is a blue box in the right top of the piece.
- Click on it and drag and drop the option “else if”, as shown in the image below:
Now you have everything you need to finish your code!
















