How do I exit a loop? For example, sometimes I use an infinite loop to do something and put a check in it when I want to break out. Specifically, I don't want to put the check in the loop definition itself.

In vbscript, I would do something like this:
 Code:
Do While True
	LoopCount = LoopCount + 1
	MsgBox(LoopCount)
	If LoopCount = 5 Then
		Exit Do
	End If
Loop
MsgBox("Final Loop Count: " & LoopCount)


The closest I've gotten in kix is:
 Code:
Do
	$LoopCount = $LoopCount + 1
	MessageBox($LoopCount,"")
	If $LoopCount = 5
		Exit Do
	EndIf
Until 0
MessageBox("Final Loop Count: " + $LoopCount,"")

...but the Exit is exiting the script, not the loop.
Side question, how do I avoid the console window entirely? I still get it when I drag and drop the test kix script onto wkix32.exe. And why does a "1" appear in the console on each loop?

Oh, and how do I set my forum account to email me whenever there's a reply to this thread?