I would like to swap values in a list, and I haven’t been able to find exactly how to create a conditional swap, where if one value equals say 270 I would like to swap it for 90, but if the value is the reverse ie it equals 90 I would like to swap it for 270, the code, I believe involves an if-condition then, and an elseif-condition then, but I have been able to find how to create it.
Any help here will be appreciated. In the sample the other values remain unchanged, ie 0, 180 do not change.
SWAP_LIST_VALUES.dyn (4.9 KB)