S
shankwheat
I'm having trouble adding two values together when one of them has a
null value
// These two values come from a database
CEOBonusValue = 550000
CEONonEqIncentCompHidden == null
This should alert to true but doesn't
if (MarketCapHidden=="Large Caps" && CEOBonusValue +
CEONonEqIncentCompHidden < 2264001)
{
alert("true");
TotalScore = TotalScore + 2.5;
}
If I do this then it works fine.
CEOBonusValue == 550000
CEONonEqIncentCompHidden == 0
I'm not sure how to handle this. I need to keep the null values in my
database.
Thanks
null value
// These two values come from a database
CEOBonusValue = 550000
CEONonEqIncentCompHidden == null
This should alert to true but doesn't
if (MarketCapHidden=="Large Caps" && CEOBonusValue +
CEONonEqIncentCompHidden < 2264001)
{
alert("true");
TotalScore = TotalScore + 2.5;
}
If I do this then it works fine.
CEOBonusValue == 550000
CEONonEqIncentCompHidden == 0
I'm not sure how to handle this. I need to keep the null values in my
database.
Thanks