Join 36000+ teachers and students using TTIO.
Using IF statements
We use the word "if" all the time. If I'm hungry, then I'll ask Mum for some dinner! We can use the if statement in programming and in scratch as well.
The if () then block is a control block and a C block. If its boolean condition is true, the blocks held inside it will run, and then the script involved will continue. If the condition is false, the scripts inside the block will be ignored.
PowerPoint
Suggested Video - If statements
Loops
The Repeat Until () block is a Control block and a C block. Blocks held inside this block will loop until the specified boolean statement is true, in which case the code beneath the block (if any) will execute. This loop is in similar nature to a while
loop in some other programming languages.
Video on Loops
www.teachyourselfpython.com