Page 1 of 1

How can I do a break command in eviews

Posted: Thu Apr 01, 2010 9:16 am
by Akavall
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.

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 next
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.

Re: How can I do a break command in eviews

Posted: Thu Apr 01, 2010 10:19 am
by EViews Gareth
exitloop

Re: How can I do a break command in eviews

Posted: Thu Apr 01, 2010 12:32 pm
by Akavall
Exactly what I needed. Thank You very much!