Created an if-else test.