I'm making a flow that takes a SharePoint list and then makes it into a word document. The list column names are title, content, section, and subsection.
The format output is like this:

The flow works, but I need to add headings (such as h1 and h2) to each of the sections for readability. For example, I need the value of "introduction" in the image above to have a h1 header. What is the expression I would type to make the column of Title have a h1 heading if the subSection value equals zero? I tried typing this code into the create HTML table step in the value box (expression field), but it was invalid:
if(equals(item()?['SubSection'],0),concat('<h1>', item()?['Title'], '</h1>'), <ifFalse>)
I would also like to have the expression give the title a h2 header if the SubSection's value is not zero. I didn't know what to type for that in the ifFalse area.
This is the flow:

The reason I need the headers is because the table is eventually going to be converted to text in word. It's harder for people to read the document without the headers. I will then make a table of contents using the headers.