The while statement define a loop that iterates as long as condition remains true. In the following instance the control waits till the value of a text field becomes "go":
while (Document.Form1.Text1.Value != "go") {Statements }
In a while loop the condition is first evaluated before executing the statements.