I am working on a table according to the molds of the image below
However, to adapt the different amounts of lines in line 3 I made this code
<tbody>
@{var foco = 3;}
@for (int x = 0; x < foco; x++)
{
<tr>
@{if (x == 0) {"<td rowspan='" + foco + "' class='col-md-3'>1</td>";}}
<td class="col-md-2">2</td>
<td class="col-md-5">3</td>
<td class="col-md-2">4</td>
</tr>
}
</tbody>
How can I make the if text to be displayed on the screen?
edit: In short, my goal is that I can make a table in which one of the fields has 3 other equivalent fields (can have more or less depending on the need), and for this I need the code above to create these fields unified for me, but I can not perform this 3td process are aligned with 1td higher
