2 Replies Latest reply: Feb 11, 2016 4:31 AM by Wouter Trappers RSS

    I'm having trouble reading strings from variables in if-clauses in qlik sense script

    Wouter Trappers

      Integers in the script: no problem

      Strings: doesn't work.

       

      for example

       

      This doesn't work:

       

      set vDAP = 'DEV'

       

      if $(vDAP) = 'DEV' then

       

           set vServer = 'Devserver';

         

      end if

       

      This works:

       

      set vDAP = 1

       

      if $(vDAP) = 1 then

       

           set vServer = 'Devserver';

         

      end if

       

      Suggestions welcome!