You can perform several logical state tests as part of the while () check using the same rules as in any logical check.
while ( obj != null && True ) {
works like
while ( value > 5 && value < 10 ) {
. Conditional are checked at each iteration loop. As soon as one does not match, the while () loop will be completed. You can also use break;
while ( value > 5 ) { if ( value > 10 ) { break; } ... }
VikingGlen Dec 10 2018-12-12T00: 00Z
source share