Anyone got any idea why when a difference is 0 it doesn't come back with "broke even" ?
Been scratching my head for a long time now
Cheers
GM
$difference = $movie_takings - $movie_cost;
switch($difference)
{
case ($difference>0):
$profit_or_loss = "Profit of ".$difference;
break;
case ($difference<0):
$profit_or_loss = "Loss of ".$difference;
break;
default:
$profit_or_losss = "Broke even";
break;
}