Comparing specific columns of 2 data from different tables

Hi guys, can someone help me to modify this syntax wherein I first need to search using a unique identifier then compare specific fields? Thanks.

1 Like

Hey @jrixdimara!

You might try using something like lodash's _.find function, does something like this do the trick?

{{ _.find(table1.data, ["id", currentRow.id]).name !== self ? "#ffaaaa" : "white }}

compare_table_rows_by_id (1).json

1 Like