I was once a newbie like you and I do not blame you for asking questions like you did. I have a few suggestions for you: First, a problem like that can be solved using a series of [if .... else ] statements which is quite longer to do and the second choice is to use [a switch ] statement which is simple but powerful. If you do not know what a switch or if statements are, use Google to find tutorials out there. I hope that this will help you explore more ways of solving the same problem. Take care