I know it is easily achievable through an if/else-statement with two different for-loops, but what I'm asking about is if it's possible to do something like:
for(int a = 0; a < value ; boolean ? a++ : a--){
}
But that only leaves the error "not a statement" in my compiler.
EDIT: The a<value
isn't a big issue. I'm okay with this being an infinite loop in both directions with a break-condition inside the for-loop.