title: Matching a value in another table
body: <p>I want to collect data from a table</p>
  
  <p>Table 1 is a flavour picked by the user.</p>
  
  <p><strong>Table 1</strong></p>
  
  <pre><code>|  T1C1 |   T1C2  | 
  -------------------
  |    A |  Vanilla |
  </code></pre>
  
  <p>Table 2 is a section of flavours.</p>
  
  <p><strong>Table 2</strong></p>
  
  <pre><code>|  T2C1 |   T2C2  |  
  -------------------
  |  1   |Strawberry|
  |  2   |Chocolate |
  |  3   | Mint     |
  |  4   |Strawberry|
  |  5   |Chocolate |
  |  6   |  Vanilla |
  |  7   |Chocolate |
  |  8   | Mint     |
  |  9   |Chocolate |
  </code></pre>
  
  <p>I wanted to achieve the following result when the chosen flavour has been selected then a '<strong>1</strong>' is assigned to it otherwise it is marked as '<strong>0</strong>'.</p>
  
  <p><strong>Result</strong></p>
  
  <pre><code>|  T2C1 |   T2C2  | SELECTED|
  ----------------------------|
  |  1   |Strawberry|    0    |
  |  2   |Chocolate |    0    |
  |  3   | Mint     |    0    |
  |  4   |Strawberry|    0    |
  |  5   |Chocolate |    0    |
  |  6   |  Vanilla |    1    |
  |  7   |Chocolate |    0    |
  |  8   | Mint     |    0    |
  |  9   |Chocolate |    0    |
  </code></pre>