c# - if increasing/decreasing, do something -


i check whether integer increasing or decreasing , something.

int x = 0;

int y = 0;

if x increasing in value, y --;

thanks!

//loop starts //x gets modified if(x>tempx) {     //x increments }     else if (x<tempx) {     //x decrements  } else     //x remains same  int tempx=x; //loop ends 

Comments

Popular posts from this blog

c# - Sort XmlNodeList with a specific Node value -

Android Java.Lang.RuntimeException : Unable to start activity Component Info -

actionscript 3 - Equivalent to moveReceived in ElectroServer 5 -