function for greatest object in list less than or equal to a value

Geoff Canyon gcanyon at gmail.com
Mon Oct 12 21:10:33 EDT 2015


Not quite as concise, but this function is about 3x faster:

function greatestLessThan pList,V
   put empty into R
   repeat for each item i in pList
      if i < V and i > R then put i into R
   end repeat
   return R
end greatestLessThan



More information about the use-livecode mailing list