return in a for next loop

Blitz3D Forums/Blitz3D Programming/return in a for next loop

It can be done - but you should exit the for next loop beforehand.

Function ScanTextures()

for i = 0 to maxtextures
if texture(i) = 0 then exit
next
If i<maxtextures+1 then
Return
End If

End Function