Hello
I am currently running a for loop with 1000 estimations, I would like to know if there is a way to skip an estimation by imposing certain conditions without it displaying an error message and stopping the program.
Thanks
stop a program
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Re: stop a program
Code: Select all
for !i = 1 to 10000
[program iterations]
if [condition] then
exitloop
endif
next
Code: Select all
!i = 1
!exit = 0
while !i <= 10000 and !exit=0
[program steps]
if [condition] then
!i = !i + 10 'here I am allowing for a conditon to decrease the number of iterations
endif
if [condition] then
!exit = 1 ' here I am allowing for a condition to exit the loop at the wend.
endif
wendWho is online
Users browsing this forum: No registered users and 2 guests
