For Table Mappers, is there a way to reference other columns on that row?

I can access ‘self’ which is that cell but I want the color to depend on another column in the table.

1 Like

yeah! you can access the whole row object with {{ currentRow }}, for example {{ currentRow.otherColumnName }}

is there a way to use if/then or WHERE to choose value from one of two columns. e.g. the larger of two columns?

Hi @effeapp, you should be able to accomplish this using JavaScript Ternary.

Here's an example of this:

{{ column1 > column2 ? column1 : column2 }}

This is basically reading:

"If column1 is greater than column 2, return column 1. Otherwise return column 2"

Hope this helps!

1 Like