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.




- 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 ๐.



Test yourself
โ๏ธ Practise
Practice: hot or cold.
โ๏ธ Practise here in the lessonโ Close the labor open the lab in a new page โ
๐ฏ Challenge yourself
Easy
The title writes the slider's number.
๐ Show the solution๐ Hide the solution



Result: 73
Medium
The slider changes the picture's size.
๐ Show the solution๐ Hide the solution



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๐ Hide the solution



Result: 95: Excellent, 80: Very good

