Is there a c++ operator that i could use for a for loop where it would add or subtract to variables based on whether one of the variables is less than or greater 0. For instance
int a;
int b;
for(int i=0;i<some_number; i++)
result = a +< b
result = a-> b