"Justin Azoff" <justin.azoff at gmail.com> writes: > last[keytotal] = min(last.get(keytotal), valtotal) > comes close to working - it would if you were doing max. Thanks, I think this would help. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html Rugbyklubben Speed Scandinavian Open 7s Rugby http://www.rkspeed.dk