Forum Moderators: coopster
I was thinking something like
if ($var1 <= .049 ¦¦ $var2 <= .049 ¦¦ $var3 <= .049 )
{
echo 'value to low';
}
else
{
this is where Im confused, how to select the variable with the highest value
}
any help is appreciated.
Thanks
Turk
if ($var1 <= .049 ¦¦ $var2 <= .049 ¦¦ $var3 <= .049 )
{
echo( 'value too low');
}
else
{
$highest= $var1;
if ($var2 > $highest) $highest=$var2;
if ($var3 > $highest) $highest=$var3;
echo('highest value is $highest';
}
P.S. Haven't actually tried it in PHP so may have syntax errors.
Putting a loop in like the example the URL has, makes it more flexible as well.