I’m very new to Dynamo (only started with it this week) so I’m sure there’s a simple solution to the issue I’m having;
I have a list of items and I would like to translate the values. I know there’s a ‘TakeNthItem’ function, but I want to take every 2 repeating lines. So for instance, from the above image;
So I want t add 7 to List Items [0,1,4,5,8,9…etc]
And I want to subtract 7 from [2,3,6,7,10,11…etc]
As you can see I’ve used a big code block to brute force the issue, but obviously I want to refine that.
I’m sure there’s a simple notation within the code block that will do it, but I just can’t figure it out.
If anyone could help, that would be greatly appreciated.