For the line below, is there an easy way for me to add a 3rd condition for the case pos == actual_depth? What is the ? ... : ... called?
Code:actual_depth += (pos > actual_depth ? 1: -1);
For the line below, is there an easy way for me to add a 3rd condition for the case pos == actual_depth? What is the ? ... : ... called?
Code:actual_depth += (pos > actual_depth ? 1: -1);
Thanks for the answer and suggestion.