I used the following code snippet:
bool plus = false;
int index = 0;
index = plus ? index++ : index--;
The index result is 0 and I do not know why, when I do the form below it works:
index += plus ? 1 : -1;
Does anyone have an explanation for this?