in reply to If statement not working
Under normal UI processing, the use of "elsif" would make no practical difference. Please further clarify what you desire.
Update: show some data and explain clearly "why it is not working". Use of "elsif" or hash tables don't seem to go to the point. Please explain why these simple "if" statements are not working for you.