3 Replies Latest reply: Jan 27, 2017 12:03 AM by Rahul Pawar RSS

    Questions about if and variables in scripts

    s Walter

      Hi,

       

      i want to run a script before the load script.

       

      set vartest = "Hello";
      set newTest = "";
      
      
      if($(vartest) like 'Hello', 
        // Then
        $(newTest) = $(vartest) & ' World!', 
        // else
          $(newTest) = $(vartest) & ' how are you?'
      );
      
      
      tbl_name:
      LOAD * Inline
      [fieldname,
      a
      b
      c
      $(newTest) as newTest
      ];
      

       

      The script editor shows error´s in the if statement. What´s wrong?

       

      2017-01-25_14h28_20.jpg

       

      Regards,

      sam