R
Robin Wenger
Assume I setup a condition with multiple concatenated sub-conditions like:
for (i=0; i < othervar && myobj != null && i > myobj.getValue(); i++) { ...}
or
if (i < othervar && myobj != null && i > myobj.getValue()) { ... }
are all these sub-conditions ALWAYS evaluated?
Refering to the sample above: If i is GREATER than othervar is then still checked if myobj != null?
Robin
for (i=0; i < othervar && myobj != null && i > myobj.getValue(); i++) { ...}
or
if (i < othervar && myobj != null && i > myobj.getValue()) { ... }
are all these sub-conditions ALWAYS evaluated?
Refering to the sample above: If i is GREATER than othervar is then still checked if myobj != null?
Robin