Just a couple of mistakes typing the code correctly - should look like this:
function updateRepeater(){
if($w(‘#repeater’).data.length ===0){
if($w(‘#no_results_title’).isVisible){
$w(‘#no_results_title’).show()
}
}
else{
if($w(‘#no_results_title’).isVisible){
$w(‘#no_results_title’).hide()
}
}
}