3 Replies Latest reply: Apr 25, 2017 9:03 AM by Christian Schmitz RSS

    Formula in a Script Variable

    Christian Schmitz

      Hi,

       

      I am trying to put a  formula into a Variable (in the script), but the generator puts out an Script Line Error:

       

       

      LET vL.FieldSelection_Plus1='=if(right(GetFieldSelections(Selection),2)= '51' or right(GetFieldSelections(Selection),2)= '52', left(GetFieldSelections(Selection),4)+1 &'01',GetFieldSelections(Selection)+1)'; // 2. Kickout, -2 to +1 from Selection 

       

      In a Textbox this script works, but how to put it in a variable in the script?

       

      I am happy for any hint.

       

      Kind Regards,

       

      Chris