[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: help?



you've got an extra 'else' at the end - it's after the 'end-if'.....

At 10:24 AM 7/26/02 -0400, you wrote:
>Hello,
>I needed some help. I am getting the following errors with this code.
>
>*********unknown comands or extra parameters found
>
>
>h.DOC_DT  &doc_date
>     let $quarter = datetostr($doc_date, 'MM/DD') !need to put edit mask in
>here so that only month and date are compared
>      If $doc_date >= '10/01' and $doc_date <= '12/31'
>            let $quarter = '1'
>         else If $doc_date >= '01/01' and $doc_date <= '04/30'
>            let $quarter = '2'
>         end-if
>         else If $doc_date >= '05/01' and $doc_date <= '06/30'
>            let $quater = '3'
>         end-if
>         else If $doc_date >= '07/01' and $doc_date <= '10/31'
>            let $quater = '4'
>         end-If