Users Manual

SCRATCH CODING KIT
Ultrasonic Turtle ‘Re’
Now let's create a script that gives the next scale. You have to run it when the analog reference value is less than
'15'. In the script I created earlier, let's create a nested 'if & else' statement. Create the script below!
The above script is a script that tells you to play 62 scales in one beat if the distance between the ultrasonic turtle
and the wall is less than '15'.
You have to use nested 'if & else' syntax in your existing scripts. The first condition is that if the value of Analog 0
sensor is less than '10', it plays 60 scales in one beat. 'Or' means that the value of analog 0 sensor is greater than
or equal to 10. In other words, the first or 'if&else' condition is' if the value of the analog sensor is greater than
or equal to '10'.
In addition, by using the fact that the value of the analog 0 sensor is smaller than '15' by overlapping the 'if &'
statement, the actual condition is that when the value of the analog 0 sensor is greater than or equal to '10' That
coding block is used. Therefore, when the value of the analog 0 sensor is greater than or equal to '10' and less
than '15', the 62 scale is played in one beat. If so, how do you know how to create a script for the next scale?
Now, make your own scales!
If you do not understand, try starting from scratch!
“IF” syntax utilization