title: How to index array's in Google Apps Script?
body: <p>I was working on this project and I wanted to make a function that displays an element of a specific column.</p>
  
  <p>Now with javascript I can call any element of an array with </p>
  
  <pre><code>Array[i]
  </code></pre>
  
  <p>But for some reason this doesn't seem to work in Google Spreadsheets.</p>
  
  <pre><code> var MyFunction(A) {
   return A[1];
   }
  </code></pre>
  
  <p>This function yields me nothing.</p>
  
  <p>EDIt: I solved it.
  I used this loop with a sort of double indexing:</p>
  
  <pre><code>for (var i=0; i &lt; 37; i++) {
  if (A[0][i] &lt; max &amp;&amp; A[0][i] != 0) {
  var max = A[0][i];
  };
  };
  </code></pre>
  
  <p>A[0][0] is the first element if I select a row vector in spreadsheet.
  For example, If I select A2:A5 as A, A[0][0] will give me the value of cell A2!
  Thanks for the help!</p>