Hi Don,
As you say you *always* want to write your queries to return the exact number of rows you're going to display, I totally agree.
But (knew this was coming!) in my case, I have selected just what I need out of the database and am only wanting to break
or continue
so that I can pair certain of these selected widgets together in my resulting HTML table. Not because I don't want them at all! If I could break
or continue
in my form style, I could have a special case for just a few widgets , thus pairing them in a table row. So there are gonna be special cases where it's not bad programming (and most languages have these commands). And regardless of language enforcements, etc, programmers will always come up with ways to do the wrong thing!
Anyway that aside, I can do what Tilmann suggested with the enclosing if
to accomplish the effect I'm after. But it is much harder to see the logic this way. You have to find the end of the if
which is just not visibly available, since the file is long. Easy to work around yes but just not as clear to anyone reading the code, IMO. But not to start a flame about minor issues, I'm quite happy with my end result:)
thanks again everyone