[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: use of *OR* |�in 'replace'
whenever I try to use an OR-statement in relation to the replace
command I encounter an error.
E.g.
- Variable Temp can take values of 40.5, 41.5 and 42.5
- Variable Dose_Group can take values from 1 -- 14
Then
gen Include=0
replace Include=1 if Temp==42.5 | Dose_Group<3
returns:
Dose_Group invalid name
r(198)
I've tried different combinations of parantheses in the expression
(for some reason I can make an AND-statement work).
Can someone tell me the correct syntax, or is OR-statements just not
allowed in replace?
Regards,
Steffen
Attachment:
smime.p7s
Description: application/pkcs7-signature