Replace the elements and keep the structure

Uploading…
I got a list of numbers with a structure as the image above, I want those points subtract 1 which are greater than 1 and keep the structure. Is anyone have a good idea to do this?

Your image is not coming through.

Your list should keep the same structure when you’re only applying a single function. Try using a simple conditional statement.

n>1?n-1:n

image
I am sorry for the mistake, here is the picture.
I am not quite understand how to use the conditional statement, but I will try.


That exactly what I want, and it work perfectly.
Thank you.@Nick_Boyts