Does Stata have a way to do conditional code blocks, i.e.
Code:
if condition {
do this
do this
do theother
}
Specifically, based on estimation results of a regression, I want to either send it or not send it to a generated PDF file (i am using putpdf)...

A poor substitute could be something like
Code:
putpdf image myimg.png if r>0.08 & r<0.10
but i don't believe if can be used with putpdf