Replace 2 negative vectors in a list

Hi all¡¡

My question is, I have 2 vectores with a negative value in Z and I want to change only those two by their inverse value…Someone know how i can do that? Using a parametric solution, that if appears suddenly more vectors with
negative value they would be changed by their inverse value
automatically. Also the vectors that we have to change by their inverse value should keep the same number of index as they were in the first list.

Thx a lot¡¡¡

Thx 4 all¡¡

1 Like

Hello @Organon, Nice answer, just one small comment, I think writing inline condition in CBN will work, you don’t have to put that in function. Do you??? then it’s a defect for us.

Thanks,
Ritesh

Yes, it’s not necessary.

@Organon really nice…Thx a lot¡¡¡