Calling Functions From Within An If Statement

Hi all,

I posted earlier about a preloader sticking, but beat around the bush a bit - my problem has been narrowed down and it is simply this:

while the condition of a if statement is true, as in the following hypothetical example, will it keep executing that code continuously until the condition somehow becomes false?

i.e. - will it keep trying to load the photo into the [COLOR=green]photo_movieClip [/COLOR][COLOR=black]instance continuously until the condition is false?[/COLOR]



[COLOR=blue]if[/COLOR] (*condition == true*) {[INDENT][COLOR=green]photo_movieClip[/COLOR].loadPhoto(image*); [COLOR=red]//send image from array to load into photo_mc[/COLOR]*[/INDENT]
*};*

*…If so, how can i make it call that function only once even if the condition remains true?