I am trying to use the if function to say if the result is zero then the digit is equals to zero otherwise it is 600 but its giving me a boolean error no matter what I try.

This is my code so far

int result= mult%10;
boolean b =boolean(result);
int checkDigit;
if (b=0){
checkDigit=0;
} else {
checkDigit=600;
}