ุงู†ุชู‚ู„ ู„ู„ู…ุญุชูˆู‰
Robo EgyptRobo Egypt
โ˜ฐ Course contents
Robo Apps: home
0. Lab tour1
1. The start: your first app3
2. Variables2
3. Typing and maths2
4. Conditions3
5. Time2
6. Sound and speech2
7. Arranging the screen2
8. Lists2
9. Games3
10. Sensors2
11. Bluetooth with Robo Maker2
12. Your app on your phone1
13. The final project: catch the apple3

The slider and โ€œelse ifโ€: the weather

Section 4: ConditionsLesson 4.2 ยท โฑ 11 min
๐ŸŽฏ Project goal
A slider for the temperature from 0 to 50. The app writes the temperature, says โ€œHotโ€, โ€œNice weatherโ€ or โ€œColdโ€, and changes the screen colour.
The design: a question, a slider, a label for the temperature and a label for the weather
The design: a question, a slider, a label for the temperature and a label for the weather
if, then else if, then else: three cases
if, then else if, then else: three cases
We moved the slider to 40
We moved the slider to 40
Then to 10
Then to 10
  • Tap โš™๏ธ on the if block to add else if.
  • The app asks in order: is it 35 or more? Otherwise: is it 20 or more? Otherwise it is cold.
  • value of Slider1 is the number where the slider stops.

๐Ÿ“Œ Another example: the sound level

The slider goes from 0 to 100, and the symbol changes: ๐Ÿ”ˆ, then ๐Ÿ”‰, then ๐Ÿ”Š.

The design
The design
The blocks
The blocks
In the lab: loud
In the lab: loud

Test yourself

1. The slider is at 25. What does the app write?
โœ๏ธ Practise
Practice: hot or cold.
โœ๏ธ Practise here in the lessonor open the lab in a new page โ†—

๐ŸŽฏ Challenge yourself

Easy

The title writes the slider's number.

๐Ÿ‘€ Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: 73

Medium

The slider changes the picture's size.

๐Ÿ‘€ Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: the flower got bigger.

Hard

The grade from the mark: 90 or more Excellent, 75 Very good, 50 Pass, and less is Fail.

๐Ÿ‘€ Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: 95: Excellent, 80: Very good

Finished the lesson? Mark it so your progress counts.