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 | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode