Correct logic for "elsif"