Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

7. Conditionals in the World Around You


In today’s project, you used a conditional block to build a “Two Truths and a Lie” game for your friend.

And you totally didn’t guess my lie!

Conditional statements are very important in computer science.

They are used in programs and software you use all the time.

Google Now is a really cool example of conditionals.

You can set a reminder to yourself that says something like “Next time I am at Walmart, remind me to pick up bread.”

And if the GPS in your phone senses that you are at Walmart, then the reminder pops up on your phone!

Another awesome use of conditionals happens with sound recognition programs yeah, like Sound Hound!

[music] Sound Hound listens while you play a song.

If the song matches one that Sound Hound recognizes then the app tells you the name of the song!

That's really cool! And really useful, too.

While you’re waiting for everyone in the club to finish the wrap-up, take a moment to write a shout-out.

And don’t forget to thank your Guru today for helping you learn to code!

In the next club, you’ll have the chance to create an imaginator project that will imagine your friend’s future.

So you’ll be able to guess my future?

That's awesome!

Until next time at Google CS First Friends, have fun creating and coding!

arrow_backward Back
Next arrow_forward
Write a G+ shout-out!