Change row color of table based on a value of the row

Hi, im using a table in perspective that shows the results of a query, im trying to change color of the row based on the value of a field in the table, is it possible?

Yes you will need to use a transform script and build the styles object for each row.

Can you give me an example of howt get the value i want to transform from the dataset?