0% found this document useful (0 votes)
56 views3 pages

Control Blocks in PictoBlox_ Block Coding

Uploaded by

SIMRANJEET KAUR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views3 pages

Control Blocks in PictoBlox_ Block Coding

Uploaded by

SIMRANJEET KAUR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PICTOBLOX EXTENSION

Control

Extension Description
Control blocks run the basic flow of a project in the desired fashion, whether it be organized or
unexpected.

Available in: Block Coding


Mode: Stage Mode
WiFi Required: No
Compatible Hardware in Block Coding: evive, Quarky, Arduino Uno, Arduino Mega, Arduino
Nano, ESP32, T-Watch, Boffin, micro:bit, TECbits, LEGO EV3, LEGO Boost, LEGO WeDo 2.0, Go DFA,
None
Compatible Hardware in Python: evive, Quarky, Arduino Uno, Arduino Mega, Arduino Nano,
ESP32, T-Watch, Boffin, micro:bit, TECbits, LEGO EV3, LEGO Boost, LEGO WeDo 2.0, Go DFA, None
Object Declaration in Python: sprite = Sprite("Sprite-Name")
Extension Catergory: Default

Introduction

Control is one of the ten categories of default Scratch blocks. They are color-coded amber and are
used to control scripts under certain conditions.

Read More
PictoBlox Blocks

The block pauses its script for the specified amount of seconds — the wait can also be a decimal
number.

Blocks held inside this block will loop a given amount of times, before allowing the script to continue. If a
decimal is put in, the number is rounded up.

Blocks held inside this block will be in a loop — just like the Repeat () block and the Repeat Until () block,
except that the loop never ends (unless the stop sign is clicked, the Stop All block is activated, or the
stop script block is activated within the loop). Due to this infinite loop, the block has no bump at the
bottom; having a bump would be pointless, as the blocks below it would never be activated.

The block will check its Boolean condition. If the condition is true, the blocks held inside it will run, and
then the script involved will continue. If the condition is false, the code inside the block will be ignored
and the script will move on (unlike in the If () Then, Else block). The condition is only checked once; if the
condition turns to false while the script inside the block is running, it will keep running until it has
finished.

The block will check its Boolean condition: if the condition is true, the code held inside the first C (space)
will activate, and then the script will continue; if the condition is false, the code inside the second C will
activate (unlike the If () Then block).
6

The block pauses its script until the specified Boolean condition is true.

Depending on the argument, it is either a Cap block (all or this script), or a Stack block (other scripts in
sprite). It is the only block that changes its shape.

It activates in a clone when it gets created.

It creates a clone of the sprite in the argument. It can also clone the sprite it is running in, creating
clones of clones, recursively.

10

It deletes the clone it runs in. This block is the only way, besides for clicking the Green Flag or Stop Sign,
to delete clones.

Block Coding Examples

1 AI Delivery Robot
The example demonstrates how to make a delivery robot that
follows the line and stops when it reaches checkpoint 1.

You might also like