Jump to content

Do Until isarray() AND x>y>z


Anomouz
 Share

Recommended Posts

Hey back again, i'm having issues exiting a Do loop.
$m
    Do
        $i = FFBestSpot(100, 400, 500, $m[0], $m[1], -1, 3, True)
        If IsArray ($i) Then
        Return $i
        EndIf
    Until Isarray($i) And (0 < $i[0] < 950)

;UDF will return $i[0] = 0 on error

;Or

;$i[0],[1],[2] On success


I Need the loop to continue until $i[0] returns Less than 950. Any help Much appreciated!

 

EDIT : Sorry I should probably add that whats happening is its exiting the loop when only IsArray() condition is met.

 

Thanks!

Edited by Anomouz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...