Author Topic: What is a good way to get into coding?  (Read 915 times)

Ok, so only if you forget up on initializing the variable. I got it then.
well no, that was just an example of an occasion

there could be perfectly valid times where it happens

well no, that was just an example of an occasion

there could be perfectly valid times where it happens

I really just don't get how there could be a valid time for it to happen. Like if the variable doesn't meet what you want it to then you wouldn't want to run the loop would you? I'm really sorry if I'm being annoying but I just don't get it.

I really just don't get how there could be a valid time for it to happen. Like if the variable doesn't meet what you want it to then you wouldn't want to run the loop would you? I'm really sorry if I'm being annoying but I just don't get it.
a time i can think of
Code: [Select]
for(%i = findFirstFile(%pattern); %i !$= ""; %i = findNextFile(%pattern))
fileCopy(%i, strReplace(%i, "base", "config"));

obviously you wouldn't want to copy a non-existent file. i think usually you see if statements coded in to avoid things like this though

or if you're iterating through the contents of a group and the group is empty