Skip to content
phpguru.store
Lesson 5 of 8 3 min read Free course

The If-Then Game

IF something is true, THEN do this. Making decisions with if-then is how programs choose what to do.

Play

It is sunny today. Which one should we take?

IF it is sunny, THEN take…?

For the grown-up

"IF this, THEN that" is a decision. Every app is full of them: if the password is right, open the account; if the score hits ten, win the game.