This is my code:
var tr = `<tr>
<td>${flippableTemplate(item['Group 1'])}</td>
<td>${flippableTemplate(item['Group 2'])}</td>
<td>${item['Description']}</td>
<td>${item['Description2']}</td>
</tr>`;
I want to insert conditional statements in it like
if (item['A'] != item['B'])
$('<td></td>').text("Great!").appendTo(tr);
else
$('<td></td>').text("Oops").appendTo(tr);
How do I go about doing that?
Any kind of help would be greatly appreciated. Thanks.