Skip to content
Learning Site
Home

About

  • About Robotical
  • Case Studies
  • Meet the Team
  • Blog
  • Contact Us

Our Products

  • Marty the Robot
  • Axiom
  • Cog

Teach

  • Lessons & Resources
  • Marty for Educators
  • Funding & Grants
  • Professional Development
  • Why Teach STEM?
  • Coding Environments
  • Student Led Learning

Let's Code

  • Marty the Robot
  • Code Online
  • Marty Apple App
  • Marty Android App
  • Update your Marty
  • Cog
  • Code Online
  • Cog iOS App
  • Cog Android App
  • Axiom
  • Axiom Science

Support

  • Marty Get Started
  • Cog Quick Start Guide
  • Axiom Science Quick Start Guide
  • Support & FAQs
  • Marty V2 User Guides
  • Marty V1 Resources
  • Request Support
  • Request Top-Up Training

Shop

  • Marty the Robot and Physical Computing
  • Class Packs
  • Add Ons & Extras
  • Account
  • Shipping, Returns & Cancellations
  • Distributors
HomeLessonsUnits of workCurriculum standardsTutorials

Information

  • Lessons & Resources
  • Knowledge Base & User Guides
  • About Us
  • Shipping, Returns & Cancellation
  • Privacy Policy
  • Learning site privacy
  • Terms of Service
  • Partner Hub

Support & Help

  • Support & Help Center
  • Getting Started with Marty V2
  • Getting Started with Marty V1

Learning, Resources & Guides

  • Marty V2 Lessons Site
  • Marty V1 Lessons Site

Contact Us in the UK

Stanhope House,12 Stanhope Place,Edinburgh,United Kingdom,EH12 5HH
(+44) 0131 564 0922
hello@robotical.io
Contact Us

Contact Us in the US

2810N Church St, PMB 61694,Wilmington,Delaware,USA19802-4447
(+1) 833 886 1661
hello@robotical.io
Contact Us

Why not join our mailing list?

For News, New Products and Special Offers

Join mailing list

Copyright 2016-2026 © Robotical Ltd

All lessons
Marty app
CurrentPrevious

1.10 – Introduction to Logic Operators

1.10 – Introduction to Logic Operators
Estimated time
45 minutes
Difficulty
Beginner
Products
Marty V1

On this page

  1. Lesson overview
  2. Objectives & resources
  3. Key vocabulary
  4. Lesson plan
  5. Extensions and challenges
  6. Additional reading

Extensions and challenges

  • Students could create some challenge cards of different scenarios and decisions that have to be made, pass to another team group and see if they can create a program to help Marty make that decision

Additional reading

  • Educator’s Guide
  • Introduction to Programming with Marty using Scratch

Lesson overview

When we make decisions, there is usually more than one thing that we have to take into consideration. For example, if I have homework AND I have swimming lessons then I won’t have time to watch cartoons. In this lesson, students will explore the different ways that we can represent this whilst programming to help Marty make more difficult and informed decisions.

Prerequisite knowledge

Lessons 1.1-1.9

Learning objectives

  • Understand that we can represent one thing in many different ways whilst programming
  • Use AND, OR and NOT in if statements or loops
  • Describe when to use AND, OR and NOT logical operators
  • Predict what will happen in small programs that use AND, OR and NOT logical operators

Resources and equipment

  • Marty the Robot
  • Marty Workbook (Lesson 1)
  • Laptops/Computers/Tablets
  • Access to the Scratch editor

Key vocabulary

  • If statements
  • Repeat/Loops
  • Logic
  • Operators
  • Condition
  • Decisions

Lesson plan

1. Recap of if statements by giving a few examples and asking students to predict what they think will happen

2. Moving on to begin considering when we make decisions where we have to take more than one thing into consideration, ask students to think up some after giving a few examples

3. Introducing examples of how we would use AND, OR and NOT into our if statements

4. Given some examples, ask students to predict what they think will happen, exploring different use cases of AND, OR and NOT logic operators

5. Going into small groups with one Marty per group, students will complete a programming task where they have been asked to write a program to help Marty make good decisions when he has to think about more than one thing

a. Gradually building up their program to include the different logic operators based on the question and decision that has to be made

6. Short fill in the blank task where students have to suggest which logic operator should be placed into the space, building up an understanding of differentiating between the operators and when to use them