19 Replies Latest reply: Dec 20, 2017 7:18 AM by Marcus Sommer RSS

    Dynamic variable in String

    Christoph Albrecht

      Hi,

       

      I have a variable in a String. And I want the String to change when the variable changes.

       

      Let v1 = 1;

      Let v2 = 'v1 is $(v1)';

       

      $(v2) --> "v1 is 1"

       

      When I change v1, I want also v2 to be changed:

       

      Let v1 = 2;

       

      $(v2) --> "v1 is 2"

       

      But it doesn't work. It works only the first time I use $(v2). Do you know how to do that?

       

      BR