I am having an issue with appending a string variable. I can get the expression to work with just the concat or just the if statement but not both combined. The if statement needs to be inside the concat.
This is the If statement that works:
if(empty(items('Apply_to_each')?['End_x0020_Year']),concat(items('Apply_to_each')?['Start_x0020_Year'],'/',items('Apply_to_each')?['End_x0020_Month/Value']),concat(items('Apply_to_each')?['Start_x0020_Year'],'/',items('Apply_to_each')?['End_x0020_Year']))
This is the concat that works:
concat('<!DOCTYPE html>
<html>
<head>
<style>
table {
font-family: arial;
Font-Size: 12pt;
border-collapse: collapse;
width: 100%;
}
</style>
</head>
<body>
<table width="99%">
<tr>
<td width="33%" style="border:none !important"><b>****IF STATEMENT NEEDS TO GO HERE****</b></td>
<td width="33%" style="border:none !important"><b>',items('Apply_to_each')?['Employer'],'</b></td>
<td width="33%" style="border:none !important"><b>',items('Apply_to_each')?['Job_x0020_Title'],'</b></td>
</tr>
<tr>
<td colspan="3" width="99%" style="border:none !important">',items('Apply_to_each')?['Description'],'</td>
</tr>
</table>
</body>
</html>')
Here is the Apply to each in the workflow.

Any help would be great. Thanks.