7 Replies Latest reply: Apr 25, 2016 12:25 PM by Alex Pan RSS

    Set a value for a variable and set the next value after each reload?

    Michael Wallman

      Hi all,

       

      I would like to create a variable in the script that holds a certain value that updates every time there is a reload.

       

      The value should iterate over from 1993 to 1998.

       

      So for example it is 1993

      After I reload it should be 1994

      Then the next reload it should be 1995

      ...

      Until 1998, after 1998 it should again hold the value of 1993.

       

      Here is the basic of what I want to do:

       

      SET vYear = <value of year based on above>;

       

      LOAD

      $(vYear) as CurrentYear,

      <fields>

      From file.txt;

       

      How is it possible to create a variable like this please?