{SOLVED} How to hold last increment value

how to hold last increment value thank you

Jhjh: how to hold last increment value thank you

Use a pair of tongs.

More explanation is required.

for example if I say

if (p < 3)
{ x = 0.05;
y = ++x;}

if (p<3)
{x = 0.05;
y = --x;}

if (p=3)
{y=y;}

I did a lot of research but I did not find any solution for this problem because I want the program to hols when p = 3 the last value of y.

Good news. Until you change it, y will still have its old value.

oh thank you very much!!

if (p=3)

How many more times does this need to be pointed out?

{y=y;}

Why bother ?