you could acheive the same thing by simply using "const int tuKneel = (_kneelReserved && bu->getType() == "SOLDIER") ? 4 : 0;"