b310 has asked for the wisdom of the Perl Monks concerning the following question:
if ($total_price < 20.00) { $ship_price = 3.50; } elseif (($total_price >= 20.00) && ($total_price < 50.00)) { $ship_price = 5.50; } elseif (($total_price >= 50.00) && ($total_price < 80.00)) { $ship_price = 10.50; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: if..elseif...syntax problem
by Bilbo (Pilgrim) on Feb 27, 2003 at 15:55 UTC | |
|
Re: if..elseif...syntax problem
by pfaut (Priest) on Feb 27, 2003 at 16:31 UTC | |
|
Re: if..elseif...syntax problem
by tachyon (Chancellor) on Feb 27, 2003 at 15:59 UTC | |
|
Re: if..elseif...syntax problem
by BrowserUk (Patriarch) on Feb 27, 2003 at 16:01 UTC | |
|
Re: if..elseif...syntax problem
by Mr. Muskrat (Canon) on Feb 27, 2003 at 15:55 UTC | |
by b310 (Scribe) on Feb 27, 2003 at 15:59 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |