Question: how to use command "if" in command "for"

Download shi.mw

I meet a problem. When I use command "if" in command "for", there is nothing.I don't know reason. Can anyone tell me the reason?

Please Wait...