8 Replies Latest reply: Nov 23, 2016 12:09 AM by Dinesh Manahoran RSS

    Textbox If statement / Show condition / set variable not working

    Walter Coleman

      The error shown in the window as follows:

      Garbage after Expression ','

      1  | if(vSC_DateType = 'POSTING',
      2  |
      if(GetSelectedCount(Posting_DayOfMonth) <> 0,vPostSelectedDay=1 and
      3  |
      if(GetSelectedCount(Posting_Month) <> 0, vPostSelectedMonth=1 and
      4  |
      if(GetSelectedCount(Posting_CalendarYear) <> 0, vPostSelectedYear=1))
      5  | ),
      6  |
      if(vSC_DateType = 'INSERT',
      7  |
      if(GetSelectedCount(Insert_DayOfMonth) <> 0, vInsertSelectedDay=1) or
      8  |
      if(GetSelectedCount(Insert_Month) <> 0, vInsertSelectedMonth=1)  or
      9  |
      if(GetSelectedCount(Insert_CalendarYear) <> 0, vInsertSelectedYear=1))
      10 | ),
      11 | if(vSC_DateType = 'CREATE',
      12 | if(GetSelectedCount(Create_DayOfMonth) <> 0, vCreateSelectedDay=1) or
      13 | if(GetSelectedCount(Create_Month) <> 0, vCreateSelectedMonth=1)  or
      14 | if(GetSelectedCount(Create_CalendarYear) <> 0, vCreateSelectedYear=1))
      15 |
      )


      Error seems like its starting at line 10. The first two if statements work, adding the third doesn't compile.

      Any ideas?