Well, if you already know the deal of if then elseif, you could have easily consolidated all the text events into one and then used the $ulevel.