Repeat Loop << Back



Sometimes in a loop situation, the exit condition might not be at the beginning or the bottom of the loop. It could be in the middle of the logic within the loop. Of course you could do something like

While (True)
	If (SomeConditionIsMet) Break
Loop

Repeat
	If (SomeConditionIsMet) Break
Until (False)

However since VDF's syntax is very loose, you could write something like this

Repeat
	If (SomeConditionIsMet) Break
Loop

Be careful on the word "Break", cause it only breaks out the current scope. If the word "Break" is inside of a "Begin/End" block, "Break" will only break out of the "Begin/End" block instead of the Repeat/Loop block.

Free Web Hosting