Filter an array by content
Dar Scott Consulting
dsc at swcp.com
Thu Jun 20 18:12:15 EDT 2019
If LiveCode 9.5 is not applicable (since it is not released), then...
If those numbers are codes taken from some small universe of codes, then maybe intersect will work:
intersect affectedZipCodes with TreatedZipCodes into inspectionZipCodes
But if you can go with 9.5, then maybe "where" will work:
filter elements of testDistance where each > 20.5 into failedDistance
> On Jun 20, 2019, at 2:56 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> I need to filter a numeric array by the content of the keys, not by the keys themselves. Is there a way to do that without looping through the entire array and looking at each element?
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list