title: Return multiple values and access them?
body: <p>How would I structure this to return multiple values (message and name), and be able to access them in the <code>js.html</code> file?</p>
  
  <p>&nbsp;</p>
  
  <p>--<strong>code.gs</strong></p>
  
  <pre><code>function createArtistTable(name)
  {
      var message = "test";
  
      //return message and name
  }
  </code></pre>
  
  <p>--<strong>js.html</strong></p>
  
  <pre><code>function openArtistTable(name)
  {
      google.script.run
          .withSuccessHandler(openSuccess)
          .withFailureHandler(openFailure)
          .createArtistTable(name)
  }
  
  function openSuccess(//have 2 values here -- var1, var2)
  {
      console.log(var1);
      console.log(var2);
  }
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I've fixed the problem. Thank you all for the help and information. This is what I changed: <a href="http://pastebin.com/Ci1e8ZWx" rel="nofollow">http://pastebin.com/Ci1e8ZWx</a></p>