Thank you very much! This is what i was looking for.

Now my code looks way more elegant! laugh