What If, Else

Life is full of tough decisions. If a banana is nice and yellow you better grab it quick, but what if it is green or frozen? Or both?? Meet your new goat friend in the land of snowy mountains to learn about If & Else.

If-Else is a very important part of coding. It allows your program to perform different actions in different situations.

For example, the following code makes the goat grab the banana if it’s green, or else let the monkey grab it:

if b.green()

goat.goto b

else

monkey.goto b

Try CodeMonkey at home or at school!

free trial

or

for your school / district

More to explore:

Future-Proof Skills

Future-Proof Skills: Why Kids Should Learn Coding Today

Our world today is undergoing a rapid technological change. Which raises a very important question for educators and school leaders – how can we prepare our next generation for all the technological surprises the future holds?

CodeMonkey Jr. Quizzes

CodeMonkey Jr. Quizzes

We have added quizzes to our library geared towards our pre-readers with CodeMonkey Jr.! There is a quiz for each coding concept

Table of Contents

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to CodeMonkey's blog

Stay Up To Date on The Latest NEWS
AND LEARN MORE ABOUT CODING FOR KIDS.