Data Viewer List/Grid help

I’m trying to change one element of the template to another color if certain conditions are met.

The one I circled specifically.

Here’s my code block:

I made it so that if the first column of my spreadsheet equals to the second column, then it will say Pass and create the text or background into red if its in the past, if its still ongoing, then its green (for the text box element in the template for data viewer list).
Can’t seem to get the element of the template for the data viewer grid to change color :confused: