From: Dark Ambient Date: 2006-07-04T00:07:24+09:00 Subject: Re: if problem in loop causing weirdness On 7/3/06, Matthew Smillie wrote: > On Jul 3, 2006, at 14:59, Dark Ambient wrote: > Not to be negative Your not being negative, I'd rather not program then learn to program badly (fixing symptoms versus actual bug). Though I know there is plenty of commercial software out there that does....(well that's for another discussion) > puts pics2bmoved # ADDED THIS After inserting this line "I" got thrown for a loop :) First , there are two sections to the program (so far). The first section loops through the directory asking the users if they want to move a file. If affirmative, that file gets pushed into the new array (empty till then) via push. The second section (after the pics2bmoved is created) is suppose to go through and see if any files will be overwritten, giving the user the choice to say yes or decline to overwrite. So, I think one problem is the destdir is continuing to loop even after pics2bmoved is exhauster. Or something like that :). Perhaps my next step would be to somehow combine both sections into one. > Following on from previous questions of yours, I'll also point out > that you've got the ends of the if statements mislabelled again. > Remember, the first one started is the *last* one ended. You've got > the loops right, though. Thought I corrected that in my own reply to my original post. Good news on the loops though. Is that considered progress ;)....nevermind. > matthew smillie. > Stuart