Given my storytellers, I would have avoided lengthy tests in the first place. I would rather do something like:
bool fTest1 = A == B ; bool fTest2 = C ; bool fTest3 = f(1,2,3) ; bool fSuccess = ( fTest1 | ftest2 ) & fTest3 ; if ( fSuccess ) ...
Otherwise, something like this:
if ( A == B && ( C == D || E == F ) && Z > Y ) { ... } else { ... }
YMMV, of course.
The first is much easier to debug, test, register, etc.
source share