Re: Displaying one of three functions.

From: Date: Mon, 28 Oct 2002 13:43:47 +0000
Subject: Re: Displaying one of three functions.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121693@lists.php.net to get a copy of this message
Hello Steve, I hope I understand your questions...so first we will check value of country (if it is other than finland)...then if the first if requirement is not met we will continue to second part (checking express)...and so on.... if {$country!="finland"){ display_shipping(calculate_nonfinland_cost($country)); break; } elsif ($country=="finland" && $express=="no") { display_shipping(calculate_shipping_cost($weight)); break; } else ($country=="finland" && $express=="yes") { display_shipping(calculate_express_cost($express)); break; } hope it helps... -- Best regards, Martin mailto:corwin@corwin.sk Monday, October 28, 2002, 2:20:39 PM, you wrote: SJ> //de-bug SJ> //echo "test & $country & $express"; well shouldn't here be && or and?

« previous php.general (#121693) next »