title: TEXTJOIN only when the condition is met?
body: <p>I tried  using TextJoin function with <strong>IF</strong> in it, but it somehow doesn't seem to work. I think I've written the formula correctly, but it doesn't give the solution I'm attempting to get. </p>
  
  <p><strong>Objective:</strong>
  I want the values from A-column to get printed out only when the values of B-column matches with the value of D-column. The intended outcome should be 1,2,3,6</p>
  
  <p>Does anyone know how can I get done? Did I do something wrong? By the way, I'm using the google spreadsheet.</p>
  
  <p><a href="https://i.stack.imgur.com/yWRoY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yWRoY.png" alt="enter image description here"></a></p>