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

March 2025

S M T W T F S
      1
2345678
9101112131415
161718192021 22
23242526272829
3031     

Most Popular Tags