Array[0] = a Array[1] = b Array[2] = c Array[3] = d Array[4] = e tmpValue = 0 highestValue = 0 i = 0 loop exitwhen i > 4 set i = i + 1 if Array[i] > tmpValue then set tmpValue = Array[i] set highestValue = i endif endloop