Hi,

I have a question, why the next sintaxis(with conditions) is not possible?

foreach i of numlist 1/30{
gen brd1=c if i>10
gen brd2=c if i>15
gen brd3=c if i>25
gen brd4=c if i>30
}
When I run "brd1" the values are between 1/30, and I want values between 1/10.


Thanks for your help.
S.