title: Zapier JavaScript: Extract text array and Return that array
body: <p>Please excuse me if this question is silly .. My code is now like:</p>
  
  <pre><code>var arr_original = data.split(',');
  var arr_new = [0, 0, ""];
  
  for (var i = 0; i &lt; arr_original.length; i++) {
    if (arr_original[i] === "Apple") {
      arr_new[1] = 1;
    } else if (arr_original[i] === “Orange”） {
      arr_new[2] = 1;
    } else {
      arr_new[3] = arr_arr_original[i];
    }
  }
  
  output = [{Is_Applie: arr_new[1], Is_Orange: array_new[2], 
  Is_Something_Else: array_new[3]}];
  </code></pre>
  
  <p>Where is the error??</p>