Hello,

"Martin Hudec" <[EMAIL PROTECTED]> wrote:
> or (from my point of view is this better)
> 
> if {$country!="finland") :
>    display_shipping(calculate_nonfinland_cost($country));
> elsif ($country=="finland" && $express=="no") :
>    display_shipping(calculate_shipping_cost($weight));
> elseif ($country=="finland" && $express=="yes") :
>    display_shipping(calculate_express_cost($express));
> endif;
> 

How about something like this?

if ($country!="finland"){
   display_shipping(calculate_nonfinland_cost($country));
}else{  // if it's not "finland" it should be something else, no?
  if ($express=="no"){
    display_shipping(calculate_shipping_cost($weight));
  }else{ // if it's not "no" it should be "yes", no?
    display_shipping(calculate_express_cost($express));
  }
}

Just an idea...

- E


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to