If...else expression
Posted: Wed Apr 02, 2008 3:24 pm
Hi,
I have the following expression only the first part of which is being taken into account, ie whether the result is true or false, only the true is being printed
What am I doing wrong ?
Cheers
Pete
I have the following expression only the first part of which is being taken into account, ie whether the result is true or false, only the true is being printed
Code: Select all
$sips = $this->makeRequest($order->info['total'], $currency);
if ($sips = $this->makeRequest($order->info['total'], $currency) > 200) {
echo $sips = $this->makeRequest($order->info['total']*0.30, $currency);
} else {
echo $sips = $this->makeRequest($order->info['total'], $currency);
}
echo '">'."\n";Cheers
Pete