I am trying to make some function but, i am getting white page result when i put -ve value for $variable
. Look this variable has -ve value : $long_total_profit_loss = "-900";
$long_total_profit_loss = "-900";
$short_sell_total_profit_loss = "-600";
//CONCLUTION
if(($long_total_profit_loss > $short_sell_total_profit_loss) && ($long_total_profit_loss>0)){
echo "long has higher in profit";
}elseif (($long_total_profit_loss > $short_sell_total_profit_loss) && ($long_total_profit_loss < 0)){
echo "long has higher loss";
}elseif (($long_total_profit_loss < $short_sell_total_profit_loss) && ($long_total_profit_loss > 0)){
echo "short has higher in profit";
}
elseif (($long_total_profit_loss > $short_sell_total_profit_loss) && ($long_total_profit_loss < 0)){
echo "short has higher loss";
}