Get index of double


You want without adding a “k+v”

I’m thinking

cordially christian.stan

no, the list is not static.

So at @L2 there are always 3 lists but the items in these 3 lists are dynamic and different each time. Sometimes a list has only 1 item, but it can also be 10.

Do you understand what I mean?

list A is a variable list. now there are 4 items but this can also be 10 or more.

List A determines the number of items (also 4)
in list B.

And the number of lists in list B is always 3.
These items are randomly distributed over the 3 lists.

And so what I want is that all items in list 0 (of list B) are always replaced by k, in list 1 all items are always replaced by k+v, and all items in list 2 are always replaced by k-v.

I think that’s how I solved it.

Thank you all for helping out!

1 Like

Here is


good evening or morning
cordially christian.stan

1 Like

It sounds like you could probably just use an If statement.

If you’re checking indices of specific elements so that you can replace the values at those indices you could likely just check the condition and then replace the value all at once.

3 Likes