Page 1 of 1

conditional statement

Posted: Tue Feb 13, 2018 9:54 pm
by nasim
Hello,

I want to create a parameter as below:

Parameter
di(b) dummy for BMPs;
if(l.x2(rt,of,b)GT 0);
di(b)=1;
else di(b)=0;
));

x2(rt,of,b) is one of my variables. But, I get errors as below:

Parameter
528
529 di(b) dummy variable for BMPs;
530 if(l.x2(rt,of,b)GT 0);
**** $142$149,149,149,148,135,10
531 di(b)=1;
532 else di(b)=0;
**** $409
533 ));
**** $408,408

I am wondering if someone could help me with the syntax. Thank you in advance.

Re: conditional statement

Posted: Thu Feb 15, 2018 9:32 am
by Renger
Hi
You should write X2.L instead of L.X2
Cheers
Renger

Re: conditional statement

Posted: Mon Jun 04, 2018 5:44 pm
by nasim
ok, thank you so much