[solved] How to Use Code to Let Your Users Search a Collection

Dear Majd, Yes I did. It turned out I needed to assign diff inside the function. I was thinking it was globally assigned. A misunderstanding on my part. However, I am still looking for a way to retrieve a single cell value from a content file. Example: I am working with permutations of numbers where order doesn’t matter and repetition is allowed. I have saved as content files the .csv files I uploaded.
I have attached a picture below of an extremely simplified example of two of the content files I work with.

What I can do is look up in Content file 1, the value 3 in the sum column and output to a table in my page the results: 3

What I have not figured out yet, is how to read Content file 2 and export just 1 value.
Example: I want to search Content file 2 for the sum of 3 and return the number of occurrences 2.
In one way, send it to a textbox in my page.
the second way, import it into the code and store it as a defined number in code (i.e. let occ = "the number 2 "the number of occurrences of the sum 3 in Content file 2.)

But, I am sure I will figure this out eventually.