A nice if-elseif structure for deciding on what to do.