Learned about chaining a series of else-if statements in C.