Code: Select all
if(type & tradeable > 0)
{
CheckBox3->SetValue(true);
}
else
{
CheckBox3->SetValue(false);
}
when type equals 1 and tradeable equals 2 why the freak does the if statement flag the result to be higher than 0?
on my calculator 1 and 2 equals 0...