How can i remove table row using scenario?

I want to remove table row in writer using scenario (JOOScript).

----------------------------
| Data 1  I                 I
|---------I                 I
| Data 2  I Total           I
|---------I                 I
| Data 3  I                 I
----------------------------

How can I remove only “Data 3” table row
How can I remove full row? (“Data 1”, “Data 2”, “Data 3”, “Total”)
Help me, plz ?

----------------------------
| (1)(2)Data 1(/2)  I                 I
|-------------------I                 I
| (3)Data 2(/3)     I Total(/1)       I
|-------------------I                 I
| (4)Data 3(/4)     I                 I
----------------------------

(1):
@table:table-row
[#if checkTotal != “”]
(/1)
@/table:table-row
[/#if]

(2)
@table:table-row
[#if checkData1 != “”]
(/2)
@/table:table-row
[/#if]
and etc.

(!) Important!
(1) and (2) must be different scripts.

- Dad, why does a bitten apple darken?
- It’s very simple, junior: apple juice contains a lot of iron, after the protective skin is damaged, it quickly oxidizes with atmospheric oxygen, and iron oxide Fe2O3 has a characteristic red-brown color…
- Dad, who were you talking to just now…?

So, who were you talking to just now…? :slight_smile:

Working with complex text tables is not a trivial task. To understand how difficult this is, read chapter 8.2.3. What is a complex text table.
The merged cell Total(/1) makes the task difficult, there is no direct way to remove the third row. As a workaround, you can try clearing the (4)Data 3(/4) cell and merging it with the (3)Data 2(/3) cell - this won’t be a true “remove”, but the result will be similar to what you’re looking for.

- You are funny. Eat you last. :slight_smile:

Thank you for chapter!
I showed the correct answer in the previous answer. This works for me.