I am currently trying to complete a simple age bucketing equation but am receiving a Malformed IF statement error and I am not too sure where I am off. Below is the current equation that I have written out;
IF [DaysOutstanding]=1 then "S1"
else IF [DaysOutstanding]<=7 then "2-7"
else if [DaysOutstanding]<=15 then "8-15"
else if [DaysOutstanding]<=30 then "16-30"
else if [DaysOutstanding]<=60 then "31-60"
else if [DaysOutstanding]<=90 then "61-90"
else if [DaysOutstanding]<=180 then "91-180"
else ">180" ENDIF
