"if" is added on the first rule while an "elsif" is added to all other rules. Without this condition I would have to somehow check if the loop is on the first rule or after it.