doublec4:
Thank you!Would the parenthesis then be necessary if Boolean operands were included? Or are they in the same category as comparison operators?
ex:
if (vehiclevelocity <= (setspeed - 10) && enginestatus == 1)
The entire story is here:
http://en.cppreference.com/w/cpp/language/operator_precedence
if (vehiclevelocity <= setspeed - 10 and enginestatus == 1)
The designers were smart and assigned the precedence in accordance with common mathematical language. C++ was updated to allow the use of "and" and "or" keywords in the place of "&&" and "||".