I’m not sure why it isn’t working but you should be able to trouble shoot it easily..
Are you using a number field or a text field. It would be best to use number and not evaluate your arguments using “string”, as it might return false.
Print_r(get_field(‘field_name’);
see what values are being outputted and work from there.