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