michael@0: function ifInsideLoop() michael@0: { michael@0: var cond = true, intCond = 5, count = 0; michael@0: for (var i = 0; i < 100; i++) { michael@0: if (cond) michael@0: count++; michael@0: if (intCond) michael@0: count++; michael@0: } michael@0: return count; michael@0: } michael@0: assertEq(ifInsideLoop(), 200);