title: How do I use two variables in my function?
body: <p>So I have multiple script. One script retrieves data from a Googlesheet and parses it as JSON. The other one uses this to output it to HTML.</p>
  <p>My first:</p>
  <pre><code>function getStatistics() {
    var sheet =  SpreadsheetApp.openById(&quot;ID&quot;);
    var rowsData = sheet.getRange(&quot;A:A&quot;).getValues();
    var result = JSON.stringify(rowsData);
    var funcNumber = 1;
    return result;
  }
  </code></pre>
  <p>This retrieves the data from a spreadsheet in column A.</p>
  <p>The second script, here I want to use both 'Result' and 'Funcnumber' in my function.</p>
  <pre><code>function onSuccess(data, funcNumber) {
        var dataJson = JSON.parse(data);
        var newColumn = document.createElement(&quot;div&quot;);
        newColumn.className = &quot;column&quot;;
        for(var i = 0; i &lt; dataJson.length; i++) {
          if (dataJson[i] != &quot;&quot;) {
            var div = document.getElementById('cont-' + funcNumber);
            var newDiv = document.createElement(&quot;div&quot;);
            newDiv.innerHTML = dataJson[i];
            newColumn.appendChild(newDiv);
          }
        }
        div.appendChild(newColumn); 
    }
  </code></pre>
  <p>Using the Json result to PARSE the HTML works. But retrieving <code>'funcNumber'</code> from the function not. Then finally I call the first function with this line:
  <code>google.script.run.withSuccessHandler(onSuccess).getStatistics();</code></p>
  <p>Does anybody know how to use both <code>result</code> and <code>funcNumber</code> in my second function?</p>