Jump to content

if $array[0][$i] = "" then exitloop (does not work)


Go to solution Solved by FireFox,

Recommended Posts

My code
 

$ScreenShotWidth =  200 ; for example

    For $i = 0 To $ScreenShotWidth - 1
         If $screenShotArray[0][$i] = "" Then
            $aSize = $i
            ExitLoop
        EndIf
        ConsoleWrite("WTF=" & $screenShotArray[0][$i] & "=WTF" & @LF)
        ConsoleWrite($i & @LF)
    Next

My multi-array is only Filled with 0 and 1 values and "" as in completely empty

What Am i doing wrong here?  stuck at it for 45 minutes

all my consolewrites look this

WTF=0=WTF

WTF=1=WTF

WTF==WTF

So I assume it is in the last example completely empty

I guess I am overlooking some basic rules

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...