10 or more phones order

ian douglas ian.douglas at iandouglas.com
Mon Apr 28 10:20:46 CEST 2008

Pietro "m0nt0" Montorfano wrote:
> Well, may be that i missed the answer but someone asked if  the discount 
> and the extra stuff are applied only to the 10 pack or it could also be 
> a 12 pack?
> So to let you understand the condition is:
> if (phones_ordered == 10)
>     do_the_10_pack_trick();

More like:

if (phones_ordered && phones_ordered % 10 == 0)

Steve has already mentioned on the list that ordering 11 phones means 
getting a bulk discount on the 10-pack, but paying full price on the 
stray 11th phone.


More information about the community mailing list