Need help on creating an conditional loop

I need help to create a loop. Please help me according to following information.

I am creating a program in which

1. an action will check that a file exist or not.

2. If the file does not exist so it will check again and again each time adding a +1 value to a variable until the variable value reaches 10. 

3. If variable reached at 10 but file still not found so it will go to an action list 1.

4. If the file found during checking so it will leave the loop and go to an action list 2.

What I know?

I know point 1.

 

What I dont know?

I dont know point 2 , 3 and 4.

Please help