From: Josselin Date: 2007-02-02T16:40:06+09:00 Subject: indexed array presently I am using : zl = 13-[2,5,10,15,25].index(last_city_km) when last_city_km is one of these fixed values to get a zoom level, now, there is a change in customer requirement, last_city_km is calculated, so last_city_km can be an integer value between 0 and 25, and I would like to calculate (DRY) the zoom level such as : last_city_km can be 0 if last_city_km <= 2 then zl = 13 if 2 < last_city_km <= 5 then zl = 12 if 5 < last_city_km <= 10 then zl = 12 if 10 < last_city_km <= 15 then zl = 12 if 15 < last_city_km <= 25 then zl = 12 if 25 < last_city_km.... cannot ! thanks for