Computational Thinking for K-12 Educators: Nested If Statements and Compound Conditionals (Coursera)

Computational Thinking for K-12 Educators: Nested If Statements and Compound Conditionals (Coursera)

How could you program a complex "choose your own adventure" game? How can your soccer game determine goals, balls out of bounds, and corner kicks? You'll learn to do both of these in this course! This class teaches the concepts of nested if/else statements and compound Boolean conditional expressions.

Class Deals by MOOC List - Click here and see Coursera's Active Discounts, Deals, and Promo Codes.

For each concept, we'll start by helping you connect real-world experiences you are already familiar with to the programming concept you are about to learn. Next, through a cognitively scaffolded process we'll engage you in developing your fluency with problem solving with nested if/else statements and compound conditionals in a way that keeps frustration at a minimum.
Along the way you will learn about the common challenges or "bugs" students have with these concepts as well as ways to help them find and fix those concepts. You'll also be guided in running classroom discussions to help students develop deeper understanding of these concepts.
Finally, you'll prepare classroom resources to help your students to develop debugging skills. Additionally, you will create resources to help educate your students about the impacts of lack of equity in K-12 CS instruction.
Course 4 of 6 in the Computational Thinking & Block Programming in K-12 Education Specialization.

Syllabus

WEEK 1
Course Orientation
Nested If/Else Part 1
Explore conditional executing by learning about nested if-else statements. Use nested if-elses in examples where there are three or more options. Design your own conditional system, re-create Snap programs based on video solutions, and review some common debugging tips.

WEEK 2
Nested If/Else Part 2
Continue with nested if-else statements with our non-interactive programming puzzles to check your knowledge. Get prepared to run classroom discussions on some challenging if-else statements and explore a different, free, online programming system -- pencilcode.net

WEEK 3
Compound Conditionals Part 1
Learn how to create compound conditionals with and and or. Do an unplugged activity to see compound conditional apply in a soccer game. See how truth tables define the behavior of Boolean operators and and or and get the chance to fill one in. Create your own compound conditional programs using Snap, review others' work, and learn debugging tips.

WEEK 4
Compound Conditionals Part 2
Deepen your understanding of compound conditionals with some pretty challenging classroom discussion questions. Learn about the design behind the Scratch programming language and read and use starter code in Scratch to create a soccer game that announces goals and various out of bounds situations.

WEEK 5
Equity & Pedagogy
Explore the equity and pedagogical aspects of computer science. Learn about Grace Hopper, an iconic woman and pioneer of computing and learn about debugging tips. After practicing your debugging skills, you will learn the benefits and methods to introduce computer science to everyone. Finally, we'll introduce various communities and share advice that will be useful for computing education leaders.

Go to Class
MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Related Courses

Foundations of Teaching for Learning: Planning for Teaching and Learning (Coursera) Coursera
Commonwealth Education Trust

Foundations of Teaching for Learning: Planning for Teaching and Learning (Coursera)

The Foundations of Teaching for Learning programme is for anyone who is teaching, or who would like to teach, in any subject and any context - be it at school, at home or in the workplace. With dynamic lessons taught by established and respected professionals from across the Commonwealth, this eight course programme will see you develop and strengthen your skills in teaching, professionalism, assessment, and more. As you carry on through the programme, you will find yourself strengthening not only your skills, but your connection with colleagues across the globe. A professional development opportunity not to be missed.

Jul 27th 2026
5-12 Weeks
ADHD: Everyday Strategies for Elementary Students (Coursera) Coursera
University at Buffalo,The State University of New York

ADHD: Everyday Strategies for Elementary Students (Coursera)

This course will provide an overview of ADHD diagnosis and treatment. Course participants can expect to learn about ADHD as a developmental disorder that begins early in childhood, and participants will also learn about evidence-based approaches for diagnosing ADHD. Following that, two evidence-based treatment approaches (the Daily Report Card and Parenting Strategies) will be introduced. (Note these course activities are informational and are not intended to replace working with a licensed/trained professional).

Aug 3rd 2026
4 Weeks
Negotiating Learner Differences: Towards Productive Diversity in Learning (Coursera) Coursera
University of Illinois at Urbana-Champaign

Negotiating Learner Differences: Towards Productive Diversity in Learning (Coursera)

An investigation of the dimensions of learner diversity: material (class, locale), corporeal (age, race, sex and sexuality, and physical and mental characteristics) and symbolic (culture, language, gender, family, affinity and persona). Examines social-cultural theories of difference, as well as considering alternative responses to these differences in educational settings - ranging from broad, institutional responses to specific pedagogical responses within classes of students.

Aug 3rd 2026
4 Weeks
Designing Learning Innovation (Coursera) Coursera
Politecnico di Milano

Designing Learning Innovation (Coursera)

Where to start to innovate your teaching? But before that, what does it mean to innovate in the classroom? Designing Learning Innovation aims to put the designing culture at the service of learning innovation, supporting those who do not have a specific pedagogical background and those who wish to learn the basic tools of a good teaching design then to continue exploring the frontiers of innovation. A set of logical and methodological tools to innovate teaching, finding the most suitable approaches with one’s own vision of the teaching-learning experience.

Aug 3rd 2026
5-12 Weeks
Rebo-binario (Coursera) Coursera
Universidad Autónoma Metropolitana

Rebo-binario (Coursera)

Te damos la bienvenida al curso en línea Rebo-binario, un curso diseñado para incentivar el desarrollo de habilidades mentales relacionados al pensamiento computacional y creativo para la resolución de problemas y la reflexión crítica. Para lograr este cometido echamos mano de estrategias del pensamiento computacional y la creatividad como saberes para el uso y apropiación de herramientas digitales y tecnologías informáticas.

Aug 3rd 2026
3 Weeks
Programming with Scratch (Coursera) Coursera
The Hong Kong University of Science and Technology - HKUST

Programming with Scratch (Coursera)

Learning coding is not only about understanding the programming language being used, but also developing important computational thinking skills, which are useful for problem solving across many disciplinary areas. In this course, students will learn basic programming skills by creating interactive storybooks, animations, and games with Scratch, which is a block-based visual programming language for anyone new to coding.

Aug 3rd 2026
5-12 Weeks
TECH MeD: Transdisciplinary Education for Critical Hacks of Medical Devices (Coursera) Coursera
University of Florida

TECH MeD: Transdisciplinary Education for Critical Hacks of Medical Devices (Coursera)

This course seeks to create an informed public, aware of the technical, medical, legal, and ethical issues associated with implantable medical devices. The course features conversations with experts from a variety of relevant fields to discuss the present and future technological, ethical, legal, and social challenges associated with implantable medical devices.

Aug 3rd 2026
5-12 Weeks
Disability Awareness and Support (Coursera) Coursera
University of Pittsburgh

Disability Awareness and Support (Coursera)

The goal of this course is to promote equal opportunity and the full participation of students with disabilities in higher education by helping participants advance their awareness of the meaning of accessibility in education. Participants will gain competence and confidence in working with students by focusing on legislation, universal design, and assistive technologies. Thank you to Abbas (Bobby) Husain Quamar, Graduate Student Researcher in the Department of Rehabilitation Science and Technology at the University of Pittsburgh, for his contributions to the course.

Aug 3rd 2026
4 Weeks
Foundations of Teaching for Learning: Learners and Learning (Coursera) Coursera
Commonwealth Education Trust

Foundations of Teaching for Learning: Learners and Learning (Coursera)

The Foundations of Teaching for Learning programme is for anyone who is teaching, or who would like to teach, in any subject and any context - be it at school, at home or in the workplace. With dynamic lessons taught by established and respected professionals from across the Commonwealth, this eight course programme will see you develop and strengthen your skills in teaching, professionalism, assessment, and more.

Jul 27th 2026
5-12 Weeks
New Learning: Principles and Patterns of Pedagogy (Coursera) Coursera
University of Illinois at Urbana-Champaign

New Learning: Principles and Patterns of Pedagogy (Coursera)

Education is in a state of flux – transitioning from traditional architectures and practices to new ecologies of teaching and learning influenced by the tremendous social and technological changes of our times. What changes are afoot today in workplaces, civic life and everyday community life? What are their implications for education? What are the possible impacts of contemporary social transformations on teaching and learning - including in the areas of technology, media, globalization, diversity, changing forms of work in the “knowledge society”, and, in these contexts, changing learner needs and sensibilities? This course explores three pedagogical paradigms: “didactic”, “authentic” and “transformative” learning.

Aug 3rd 2026
4 Weeks
Get Interactive: Practical Teaching with Technology (Coursera) Coursera
University of London,Bloomsbury Learning Environment

Get Interactive: Practical Teaching with Technology (Coursera)

This course is designed to help you create dynamic, interactive online courses through the use of multimedia tools, student collaboration opportunities, and formative assessment and feedback. Each week we will focus on a particular topic: Using multimedia for teaching and learning; Encouraging student collaboration; Formative assessment and feedback.

Aug 9th 2026
3 Weeks
Primate Conservation (Coursera) Coursera
University of Colorado Boulder

Primate Conservation (Coursera)

We are presently facing a potential extinction crisis for the order Primates (and many other life forms). In this course we will learn about threats to primate conservation globally. We will be using the, “Primates in Peril: The World’s 25 Most Endangered Primates 2018-2020” by Schwitzer et al (2019) as a basis for the discussion of global primate populations.

Aug 3rd 2026
5-12 Weeks