13 Replies Latest reply: Apr 12, 2017 2:29 AM by vivek prasad RSS

    Dual if statement with multiple conditions

    vivek prasad

      Hi I am trying to add multiple if conditions for the below task as hand:

      if d<30

      result=([90+(Rent-8000)]/1000)*3

      else if 30<d<60

      result=([100+(Rent-8000)]/1000)*3

      else if 60<d<90

      result=([110+(Rent-8000)]/1000)*3

       

      I tried this using multiple if statement in the script editor LOAD. However, I get error if I try to use multiple conditions under one if statement.

       

      Could any one please help me to work on the right approach towards this issue ?

       

      Thanks!