title: How can I read a table in google docs and then change its cells background color
body: <p>I want to change the background colour of a table cell in google docs if it matches a value. Here is the image of the table which I want to match
  <a href="https://i.stack.imgur.com/M2ZRy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M2ZRy.png" alt="enter image description here" /></a></p>
  <p>Here is my code where I am getting this table:</p>
  <pre><code>   for(var dex= 0; dex &lt;= 5 ; dex++){
      var row = mytable.getRow(dex);
      var res = row.getText();
    
      if (res[dex]==&quot;B+&quot;){
        mytable.getCell().setBackgroundColor(&quot;#FFFF00&quot;);
      }
    }
  </code></pre>
  <p>It is not colouring the particular with B+.
  Please someone help.</p>