As posted in the duplicate question, the checkbox has a value of 'true' or 'false'.
var checkBox31:com.ibm.xsp.component.xp.XspInputCheckbox = getComponent("checkBox31");
if (checkBox31 != null && checkBox31.getValue()== 'false'){
return true;
}else{
return false;
}