Hey guys.
I'm building a flow that extracts content from the SQL database, converts it to HTML and sends an email, but I want to change the cell color according to the situation. A simple IF would solve the problem, but I'm facing a syntax error.
%HTMLTable%
<tr>
<td style=\"border: 1px solid black; background-color: #f2f2f2; text-align: center;\">%CurrentItem[0]%</td>
<td style=\"border: 1px solid black; background-color: #f2f2f2; text-align: center;\">%CurrentItem[1]%</td>
<td style=\"border: 1px solid black; background-color: #f2f2f2; text-align: center;\">%CurrentItem[2]%</td>
<td style=\"border: 1px solid black; text-align: center; %IF(CurrentItem[3] > 4, 'background-color: #ff0000;', '')%\">%CurrentItem[3] %</td>
In this example, I want to insert a condition into CurrentItem[3].
If (CurrentItem[3] > 4, background-color = 'red', nothing), like this.