Arie Willem de Jongh over 4 years ago
Hi Luliia,
Great questions. It's to prevent a wrap around, if the index you insert supersedes the length of the list. Let me explain with an example:
Let's say you have a list of 7 values:
A,B,C,D,E,F,G
Now if I insert index 0, I get A, if I insert index 1 I get B etc. until index 6 I get G. (remember we start counting at 0, so 6 is the last index of the list insetad of 7)
So what happens if I insert an index that supersedes the items in the list, say 7? If the W input is set to True, the component will wrap around the values and start counting from 0 again, so you'll get A as an output. If you insert 8, you'll get B etc.
When the W is set to False, you'll simply get a Null (empty) value returned, because the list doesn't have an item at index 7 and above.
I hope this makes sense,
Best,
Arie