Func f() Local $i For $i = 0 To 2 Local $dir = "" If $dir = "" Then Return 2 End If Next Return 1 EndFunc