hmm sorry, missed it. I suggest moving the assignment outside the condition for readability