2 ms·
Which is not functionally the same as OPs second example which would be equivalent to (product.getCategory() == 2 || product.getCategory() == 5) && isProdu
by jonhohle 8y ago
Which is not functionally the same as OPs second example which would be equivalent to
(product.getCategory() == 2 || product.getCategory() == 5) && isProductUnderDiscount(product)