2014년 12월 27일 토요일

Modulo usage in cyclic lists?

Since in ai2, lists start at 1 rather than 0, does anyone use modulo to make the list cyclic, 
of is one forced to check that the list length is exceeded, and then manually set the next index to 1?



do you have an example of such a cyclic list?

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.



See attached for something small you can use.
To pick the next index n in a list, 
set n = next_n(length(list),n)




I think, I understand the problem now, see also this example


댓글 없음:

댓글 쓰기