How can I do a break command in eviews
Posted: Thu Apr 01, 2010 9:16 am
Hello,
I am trying to write a code, such that the for loop stops if x(!i) > 1, but I am not sure what syntax I should use.
In above code I am trying to put a break command where "break"(which is of course not the syntax e-views accepts) is written.
Thank You in advance.
I am trying to write a code, such that the for loop stops if x(!i) > 1, but I am not sure what syntax I should use.
Code: Select all
for !i = 1 to 100
if x(!i) < 0 then
y(!i) = 0
else if x(!i) > 1 then
y(!i) = 1
break
endif
endif
nextThank You in advance.