2 Replies Latest reply: Oct 25, 2017 11:01 AM by omar bensalem RSS

    use of "if with let variables" within the script (syntax error)

    omar bensalem

      Hi community stalwar1,

       

      I'm trying to do sthing like this :

       

      if( $(vNbr) >4,

      Let vRequestBody = sthing1 ;

       

      LIB CONNECT TO 'source';

      do bla bla

      " WITH CONNECTION(

      BODY "$(vRequestBody)"

      );

      ,

      Let vRequestBody = sthing2 ;

       

      LIB CONNECT TO 'source';

      do bla bla

      " WITH CONNECTION(

      BODY "$(vRequestBody)"

      );

      )

       

      but when I do this, It seems to be impossible (syntax error) :

      see:

      Capture.PNG

      the question is, how can I do this otherwise?