Hi there guys, Im playing around with some methods and the one in particular I’m stuck on is AsEnumerable and i want to know if I’m using it correctly. So I created an array of grades and I’ve initialized it like so: myGradesArr = {80,100,75}
then I used an Assign activity like so:
enumMyGrades = myGrades.AsEnumerable().where(function(grade) grade < 100)
Then i used a ForEach to loop through enumMyGrades
and i get two of the following: “System.Linq.Enumerable+WhereArrayIterator`1[System.Int32]”. Thanks in advance for your help
1 Like
i just want to see what it does!
something like this
system.collections.generic.ienumerable<system.int32>
Hello @Russygrl
You are looping enumMyGrades
In your log message you need to use item variable of the for each loop as its contains each item of enumMyGrades
Put item in log message and check if its working or not
Oh my gosh @supermanPunch i just pulled a homer simpson,i cant believe i made that mistake!!! Thanks!!!
2 Likes
It works!! I love, this can really shorten code! thanks again
2 Likes
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.