If Then statements
Thomas J McGrath III
3mcgrath at adelphia.net
Tue Oct 21 04:16:04 EDT 2003
Paul,
I am very new to Rev but have been getting the same types of errors. I
just put in the end ifs where they hang and figured it was just handled
different in REV.
I hope someone knows more about if this is true.
On Tuesday, October 21, 2003, at 03:11 AM,
use-revolution-request at lists.runrev.com wrote:
> ---Calculate standard scores for DRS Attention subscale
> if cell 1,1 of fld 1065 is not empty then
> put cell 1,1 of fld 1065 into RAW
> put (35.5-RAW)/1.6 into NORM---normal control norms
> put (NORM*10)+50 into T
> put (1-NORM) into Z
> global DRS1
> put RAW into DRS1
> if scorePref=1 then
> put T into cell 1,2 of fld 1065
end if
> if scorePref=2 then
> put Z into cell 1,2 of fld 1065
end if
> end if
>
>
> compiling at 8:45:21 PM
> Type if: missing 'then'
> Object Calculate
> Line if cell 1,1 of fld 1065 is not empty then
> Hint 1
>
>
> There is a "then" there obviously, so what is the problem? This worked
> in
> SuperCard and OMO, by the way.
>
> Thanks in advance,
>
> Paul
>
More information about the Use-livecode
mailing list