As compared to statement, for statement rendering engine will take 1 extra step for check "== true". As both statements behaves same, so it is preferred to use instead of to avoid the extra step by rendering engine.