use else if to connect with the previous if condition.