4 Replies Latest reply: Nov 23, 2015 5:37 AM by Rudy Welvaert RSS

    Evaluate()

    Rudy Welvaert

      Hi,

       

      In my script I use this code

       

       

      SET Lang= '$(Teamleader_Lang)';
      LET MonthNames = Evaluate(If('$(Lang)' = 'F','jan;fév;mar;avr;mai;jun;jul;aoû;sep;oct;nov;déc', 'Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec'));

       

      I get this error:

       

      Error: Error in expression:

      EVALUATE is not a valid function

       

      I thought Evaluate() is a valid function is script. How can this be? Is there an alternative?

      It doesnt change a thing when I use:

       

      SET MonthNames = Evaluate(If('$(Lang)' = 'F','jan;fév;mar;avr;mai;jun;jul;aoû;sep;oct;nov;déc', 'Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec'));

       

      Thanks

       

      RW