Using condition to update field value

i am using influxdb as mu database and i collecte a temperature data and then visualise it with grafana. the problem is that i send the temperature data as unsigned 16 bit int so for negative temperatures i receve values like 65408, what i am trying to do is that to check when the value are biger than 32564 then i will replace them
is it possible to use if statements in influxdb to update field values

thank you