3 Replies Latest reply on Jul 9, 2008 2:16 PM by kglad

    Dynamically named for loops

    badmonkey91
      I'm trying to dynamically name multiple variables with a for loop and can't get the syntax, can anyone help?

      for (var U=1; U>2; U++){
      "test"+String(U)=U;
      }

      I need this to return;
      test1=1
      test2=2
      test3=3