Using Greater Than (0) statements

The below code is not working.

I have more remainingnos than 0 yet the button remains disabled. Does anyone have any alternatives?
I just need a statement to clarify that if ____ > 0, enable, else, disable.


function introDone() {
$w(“#eventsdatasetsubmission”).setFieldValue(‘remainingSubmissions’, $w(“#remainingnos”).value);
if ($w(“#remainingnos”).value.gt(0)) {
$w(“#buttonStart”).enable();
$w(“#startmessage”).show();
} else {
$w(“#buttonStart”).disable();
$w(“#failtostartmessage”).show();
}
}

Refer to this reference for proper Javascript syntax of comparison expressions.