How can I Program Arduino to choose between options?

This "how to use the forum" post shows how to post code. Posting code in code tags makes it easy for everyone to see your code.