...

View Full Version : Typo somewhere?



Crazydog
11-17-2006, 01:44 AM
if ($AB == 'On'){
ImageString ($im, 4, 185, 0, "On the $line", $color);
}
if ($AB == 'Above' || $AB == 'Below'){
if ($line == 'Front Sideline') {
ImageString ($im, 4, 185, 0, "$hash $AB Front Side", $color);
//one it should use ^^^^
}
if ($line == 'Back Sideline') {
ImageString ($im, 4, 185, 0, "$hash $AB Back Side", $color);
}else{
ImageString ($im, 4, 185, 0, "$hash $AB $line", $color);
//one it does use ^^^^
}
}

In that code, if $AB is set to Above and $line is set to Front Sideline, it does not use ImageString set to that, but instead uses the }else{ one. What's going wrong?

I echoed out $AB and $line it gave me Above and Front Sideline so that's not the problem.

chump2877
11-17-2006, 02:21 AM
if ($AB == 'On')
{
ImageString ($im, 4, 185, 0, "On the $line", $color);
}

if ($AB == 'Above' || $AB == 'Below')
{
if ($line == 'Front Sideline')
{
ImageString ($im, 4, 185, 0, "$hash $AB Front Side", $color);
}
elseif ($line == 'Back Sideline')
{
ImageString ($im, 4, 185, 0, "$hash $AB Back Side", $color);
}
else
{
ImageString ($im, 4, 185, 0, "$hash $AB $line", $color);
}
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum