Anna and Else

--Originally published at Just A Turtle Coding.

There’s another part to the conditionals… the “else” statement.

In the last program, I only knew that if the condition wasn’t fulfilled, it wasn’t going to run… But now I know that there’s another way. If the condition isn’t fulfilled, then there’s something false… and what the “else” statement does, is it runs only if the condition isn’t fulfilled. 

I asked Owner some help with testing this theory. When I run the program: 

But when he runs it:

This happens because the answer is not yes. Note that the else statement can’t be used on its own, it has to be used after an if statement, otherwise the program doesn’t know which condition isn’t fulfilled.