Page 1 of 1

Skipping a loop in for loop command

Posted: Sun Jul 15, 2012 5:19 am
by hfahmy
Hello,

Is it possible to skip a loop in the for loop command in eviews 7?

Specifically, here is what I want to do:

For !i=1 to !n
if condition=true then
[next !i] <-- some command that would go here which would basically skip rest of the lines in the for loop and go to next !i
endif
[more lines]
[more lines]
...
..
Next

Would appreciate any help!

Skipping a loop in for loop command

Posted: Sun Jul 15, 2012 8:08 am
by EViews Gareth
Unfortunately not - you'll have I use the if condition to only do stuff for that iteration of the loop if some condition is met.