App logic
This section of the tutorial implements the necessary logic to make the app interactable.
Click on the
Blockstab.
The Blocks tab allows you to write block codes. You can access all of your palettes or components inside the Blocks tab.

Click on the
Button1component and drag and dropwhen Button1 clickblock.

From
Control, drag and drop aifblock

Click on the gear icon on the
ifblock and drag and drop aelseblock inside theifblock

From
Logicblock, find the equality testing operator and connect it with theif

Click on the
Button1and find a block calledButton1.Text, drag and drop it on the first jigsaw puzzle box.

In the next jigsaw box, drag and drop an empty text from the
Textblock, and typeHideThe text should match with your button text.

Click on the
Image1block and drag and drop a block calledset Image1.Visible, fromLogic, drag and drop thefalseblock and connect it with theset Image1.Visibleblock

Click on the
Button1block and locate the blockset Button1.Text, drag and drop the block below the previous block and connect aTextblock with the textShow

Right click on the
Set Image1.Visibleblock and duplicate it. Move the duplicated block inside theelseblock and changefalsetotrue

Right click on the
set Button1.Textblock and duplicate it. Move the duplicated block inside theelseblock and changeShowtoHide

Last updated
Was this helpful?