in reply to if block inside map

Have you looked at map? What parts of it do you have problems with? What else have you tried, and how did it fail?