02-18-2002
n/a,
0
agreed... not enough info
however, a couple of things you might like to try with the process of elimination
print (echo, printf, whateva) depending on what your coding in. You would firstly make sure that your condition is accurate with the variable. If it doesn't equal 2, you have a problem with your condition, probably the syntax. However, if it always equals 2 maybe you should look at what that variable is doing. Maybe something wrong elsewhere and if that is the case you will have to post more info.
if ($inst == 2)
{
do stuff ; print $inst
}
AND/ OR
print $inst
if ($inst == 2)
{
do stuff ;
}