Return Total of a Given Repeated Number in a List

Bob Sneidar bobsneidar at iotecdigital.com
Fri May 24 11:26:34 EDT 2024


Actually:

put tList into tTest — so you don’t lose the original contents of tList
filter items of tTest with 2
put the number of items of tTest

Bob S


> On May 24, 2024, at 8:23 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Filter items of tList with 2;put the number of items of tList
> 
> Bob S
> 
> 
>> On May 23, 2024, at 7:07 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> 
>> Hi all,
>> 
>> Please, what’s the easiest way to return the total number of a given repeated number in a list of numbers? IOW, how many times is 2 repeated in a list containing 1,2,3,2,4,2,5,2,8 etc. Appreciate your help.
>> 
>> 
>> Thanks,
>> 
>> Roger



More information about the use-livecode mailing list