Hi Stata,

I have a loop:

forv x = 1/100{
cap{
[stata_commands]
[if first successful iteration, execute command x]

}
}

How can I run a command only during the first successful iteration of the loop? Any ideas?

Thanks in advance.

-Reese

p.s. I'm using v 14.2