title: function returning 2 values to global variable
body: <p>In light of <a href="https://stackoverflow.com/questions/61217589/set-2-series-at-once">this post</a> I'd like to ask why the script hereunder works for <code>[a,b]</code> but doesn't work for <code>[c,d]</code>.<br>
  Cannot find any documentation that explains why this doesn't work.  </p>
  
  <p>This example is only for 2 return values, but in reality I'm going to create a function with 6 or more variables to be returned in one go.<br>
  I'm trying to avoid having to enter 6 different lines, because I'll be entering this data every trading day (the function will be date-depentent and I already have code for that).<br>
  So I'd like to only have to enter 1 line per day to keep the source code clear and maintainable.  </p>
  
  <pre><code>//@version=4
  study("Functions test")
  
  var int c = na
  var int d = na
  
  f(x) =&gt; [x,x+5]
  
  [a,b] = f(20)
  [c,d] := f(30)
  
  plot(a)
  plot(b)
  plot(c)
  plot(d)
  </code></pre>