In this video tutorial students explore method return values in more details. True or false (Boolean) statements are used to create if statements. In this example an object, a turtle, is programmed to interact with the edge of the world (the screen) by using an if statement. Students are then able to make their turtle turn at the edge of the screen and continue moving.
More resources can be found here
Show health and safety information
Please be aware that resources have been published on the website in the form that they were originally supplied. This means that procedures reflect general practice and standards applicable at the time resources were produced and cannot be assumed to be acceptable today. Website users are fully responsible for ensuring that any activity, including practical work, which they carry out is in accordance with current regulations related to health and safety and that an appropriate risk assessment has been carried out.