title: IF "OR" multiple conditions
body: <p>I have a standard 2x2 table</p>
  
  <pre><code>      Yes   No
  Yes    a    b
  No     c    d
  </code></pre>
  
  <p>I want to create a condition whereby IF(a or b or c or d = 0) then 0.5 is added on to each of the cells a,b,c,d.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>  if(a &amp;&amp; b &amp;&amp; c &amp;&amp; d == 0){
      a=a+0.5, b=b+0.5, c=c+0.5, d=d+0.5
    }
  </code></pre>
  
  <p>But I am getting an error saying</p>
  
  <pre><code>Error: unexpected ',' in:
  "if(a &amp;&amp; b &amp;&amp; c &amp;&amp; d== 0){
  a=a+0.5,"
  </code></pre>
  
  <p>i.e. I don't think it is letting me put multiple things to execute.</p>
  
  <p>Also I don't think that the <code>&amp;&amp;</code> is right between each of the letters as I believe that means IF(a and b and ...)</p>
  
  <p>UPDATE TO QUESTION:</p>
  
  <p>I have another related question.</p>
  
  <p>If I have say a set of say n tables, all in the format:</p>
  
  <pre><code>      Yes   No
  Yes    a    b
  No     c    d
  </code></pre>
  
  <p>and if one of the a,b,c or d in any of the n tables is equal to zero then 0.5 is added on to each of the a,b,c,d for all of the n tables. How would I do that?</p>
  
  <p>My list looks like the following:</p>
  
  <pre><code>    n11   n12  n21   n22
  1   188  1157  173  1168
  2     2   201    1   101
  3   369  2280  354  2289
  4     1    61    0    61
  5  1306 16870 1333 16773
  6     4    81    3    79
  7     6   117    5   118
  8    19   334   15   318
  9     1    49    0    48
  10    0    36    1    33
  11    2   114    3   113
  12   13   433   37   696
  13    1    64    0    65
  14    4   157    1   160
  15    1    42    0    43
  16    1   150    5   146
  17    7  1124   10  1117
  18    2    78    2    77
  </code></pre>
  
  <p>and what I am trying to say is that if any of the aspects of the cells of the table are 0, then I want 0.5 to be added on to every cell.</p>