Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

if-then on single line fails

$
0
0
$r = 0
While 1
	 $r+=1
	  if $r > 10 then ContinueLoop
WEnd



This code fails with this error:
==> "ContinueLoop" statement with no matching "While", "Do" or "For" statement.:


I saw that it doesn't work because the ContinueLoop is on the same line of the if-then.  Why I can't put it on the same line?

Viewing all articles
Browse latest Browse all 12506

Trending Articles