Wrong row selection on sc_field_style

I would like to change a row background color depending on its value.
I have created custom field and assigned value to this field. If value is 3152, background color should be red. But instead it changes the next bottom row. I think it is scriptcase error.

OnRecord event
if({subId} == ‘3152’){
sc_field_style({subId}, ‘#DC143C’);
}