please can someone help me explaining this part of the code, if [Index.1]>0
then if [Index.1] - 1 and [Index] = [Index]
then 0
else 1
else 1 I'm having the same issue has the example but I was not able to use the M code thanks