I doing to my project

I want the value to run only once and then to the previous value. Please help me

Incomplete query.

Provide full details along with your blocks , if possible, then only you will get resolution