I've tried some old scripts but can't get around to the right solution.
I need a script that will delete all rows in a table that contain a specific single-word text, something like "xxx".
Anyone's got an idea?
To remove a row use row.remove() method.
So iterate through table.rows and remove the one matched a condition.
If we talk about condition you have to be more accurate - what do you mean "a row contain a text":
==> 1st cell contains,
==> any cell contains.
Entire row contents is an array of its cells.contents, so your 1st row text is:
rows.contents.join(" ") ==> string
My bad, it would have to be "any cell contains" the specific text.