You'll have to remove the ternary operator and go with a normal if
statement:
if(!(hc.colspan == 1 && hierarchycount == 0)){
hc.colspan += 1;
}
or, inversed per MarkO's suggestion:
if(hc.colspan != 1 || hierarchycount != 0){
hc.colspan += 1;
}