.Take method output creates Data Tree

Hello,

I am trying to use the .Take method from LINQ to limit my data but for some reason when I connect a list of items (“numbers” in this case) it gives me a data tree. Can someone explain why this is happening? “numbers” input is not used anywhere in RunScript but it still affects the output from A.

Because your numbers input is 1 integer, the component gets run 4 times, once for each entry in the list. If you right-click on the numbers input, and select list-type input, it should work once on the list.

Many thanks @menno ! List Access was the key. For some reason when I set the input type to Int, it gave me an error but I switched it to System.Object and it worked perfectly.

1 Like