On 10/12/2015 6:24 PM, Geoff Canyon wrote:
function greatestLessThan pList,V
sort items of pList descending numeric
sort items of pList by each >= V
return item 1 of pList
end greatestLessThan
Clever. How come it works when V is in the list, when you're asking for
">=" ? Seems like V should be toward the front of the second sort.
I used this:
put greatestLessthan("1,2,4,5,6,8,9",5)
The 5 was at the end of the second sorted list, even though it's equal to V.
--
Jacqueline Landman Gay | [email protected]
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode