sologretto has asked for the wisdom of the Perl Monks concerning the following question:
$discount = $cart_fields[$sc_cart_index_of_product_discount]; if ($discount == "40+15") { $discount = 49; } else { if ($quantity >= 5) { $discount = ($discount+3); if ($quantity < 10) { $discount = ($discount-1); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: an odd if then statement
by suaveant (Parson) on Jul 23, 2001 at 21:28 UTC | |
by sologretto (Initiate) on Jul 23, 2001 at 21:29 UTC | |
|
Re: an odd if then statement
by HyperZonk (Friar) on Jul 23, 2001 at 21:33 UTC | |
|
Re: an odd if then statement
by Sifmole (Chaplain) on Jul 23, 2001 at 21:28 UTC | |
|
Re: an odd if then statement
by Hofmator (Curate) on Jul 23, 2001 at 21:31 UTC |