In reply to Verrockon.:
Your description is confusing because you cannot simultaneously increment and decrement a value. You can make a choice between one or the other by using the conditional operator: t = t + (x ? -1 : +1);
In reply to Verrockon.:
Your description is confusing because you cannot simultaneously increment and decrement a value. You can make a choice between one or the other by using the conditional operator: t = t + (x ? -1 : +1);