/csk { set %i $hget(cstat,0).item set %x $hget(cstat,%i).item while (%i <= 1) { if ($hget(cstat,%i).data > $hget(cstat,%x).data) { %x = $hget(cstat,%i).item echo im bigger than other person } echo decrease 1 dec %i } //echo -a %x }