buzz44 1 Posted January 30, 2005 Share Posted January 30, 2005 (edited) hey eveyone... i have this statement If $pos[0] = $pos1[0] then $i = $i else $i = $i + 1 EndIf it works's fine but i want to get the Y coord value as well and when i try If $Pos[0] = $Pos1[0] & $Pos[1] = $Pos[1] then $i = $i else then $i= $i + 1 endif the value u of $i goes up constantly... i have a tool tip that shows me the value of $i and it just goes up and up when i run the 2nd code. wats wrong? thx Edited January 30, 2005 by burrup qq Link to post Share on other sites
Developers Jos 2,852 Posted January 30, 2005 Developers Share Posted January 30, 2005 If $Pos[0] = $Pos1[0] & $Pos[1] = $Pos[1] then $i = $i else then $i= $i + 1 endifwats wrong?thx<{POST_SNAPBACK}>& is used to concatenate 2 strings. replace it with AND :If $Pos[0] = $Pos1[0] And $Pos[1] = $Pos[1] then SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to post Share on other sites
buzz44 1 Posted January 30, 2005 Author Share Posted January 30, 2005 & is used to concatenate 2 strings. replace it with AND :If $Pos[0] = $Pos1[0] And $Pos[1] = $Pos[1] then<{POST_SNAPBACK}>thx .. i always thought & and AND were the same... guess not lolthx again qq Link to post Share on other sites
Blue_Drache 260 Posted January 30, 2005 Share Posted January 30, 2005 (edited) If $Pos[0]= $Pos1[0] And $Pos[1] = $Pos[1] thenAren't you setting $pos[1] equal to itself? Shouldn't it beIf $Pos[0] = $Pos1[0] And $Pos[1] = $Pos1[1] then Edited January 30, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to post Share on other sites
buzz44 1 Posted January 31, 2005 Author Share Posted January 31, 2005 Aren't you setting $pos[1] equal to itself? Shouldn't it beIf $Pos[0] = $Pos1[0] And $Pos[1] = $Pos1[1] then<{POST_SNAPBACK}>yeah sorry that was a typo lol .. should of been ur code =P qq Link to post Share on other sites
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now