Date: 2009-02-02 03:46 pm (UTC)
Thanks! Is there a bit of advice on programming style, concerning why 0 should come before the = and quantity comes after?

Is there a reason to avoid "if quantity != 1"?

However, both pieces of code expect a positive number and make no provision for negative numbers. Why is "0== quantity or 1 < quantity" more helpful?
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

July 2025

S M T W T F S
  12345
6 789101112
13141516171819
20212223242526
2728293031  

Most Popular Tags