Trying to calculate the points difference for a result in the following format:
200 vs 100 = 100
100 vs 200 = - 100
The problem is I'm using styles so I'm failing on the syntax.
This is the closest I've come:
if($homescr>$oppscr) $difference = '<font style="color:'.$wincolor.';">'$homescr. - $oppscr.'</font>';
elseif($homescr<$oppscr) $difference = '<font style="color:'.$losecolor.';">-'$oppscr. - $homescr.'</font>';
else $difference = '<font style="color:'.$drawcolor.';">0</font>';
Tried so many different variations of this code it's unbelievable :glare:
Thanks for your help.