Posted on: 7/28/2014 6:07:03 PM | Views : 391

My goal is to determine if I'm on the last item in the list. (I know I have 3 items in the list, so I'm just going to compare if i == 3) 
int i = 0; @foreach (var CartoonIssue in CartoonIssues ) { i += 1; .... more code ... } Problem is this doesn't work... the i variable inside the foreach loop isn't recognized. 

Related Question: How do I know I'm processing the last item in the list?  
CartoonIssues above is from the database.   

Go to the complete details ...