Another super simple design script help for the programming challanged, like myself

I am reading the design script manual, but it does not help a bit… :frowning:

See screenshot, I just need to manipulate the list to remove the integers equal to the Level2 index.

I wrote a simple if statement, and the result I need.

I bet some of you could write this down without even opening Dynamo…
Will design script ever be learnable? :frowning:

thank you

Hello,

Here is a possible lead

cordially
christian.stan

1 Like

When in doubt, make it in nodes then right click > node to code.

t2 = [[0, 4], [1, 5], [2], [3, 7], [0, 4], [1, 5], [6], [3, 7]];
num1 = DSCore.List.Count(t2);
n = num1;
t1 = (0..n - 1..1);
t3 = DSCore.List.SetDifference(t2@L2<1>, t1@L1<1>);

node to code.dyn (8.9 KB)

2 Likes