Y
Hacker News
new
|
ask
|
show
|
jobs
by
jonhohle
2908 days ago
Which is not functionally the same as OPs second example which would be equivalent to
(product.getCategory() == 2 || product.getCategory() == 5) && isProductUnderDiscount(product)