10-22-2024, 02:39 PM
See if this doesn't do the same thing as the ugly IF ELSE IF ELSE line that you've got crammed together all nasty-like above.
Instead of:
Wouldn't this be the same?
One IF. One ELSE. No tossing multiple lines of IF into the same statement just to reduce lines of code.
^ This, I would count as a valid reduction of coding to try and reduce it to the essentials. It's not just an exercise in seeing how much one can cram on a line, to artifically keep line count low.
Instead of:
Code: (Select All)
If jm = 4 Then p = j * jm + ks Else If kstep = 1 Then p = j Else p = 12 + j
Wouldn't this be the same?
Code: (Select All)
If jm = 4 Then p = j * jm + ks Else p = 12 + j + (kstep = 1) * 12
One IF. One ELSE. No tossing multiple lines of IF into the same statement just to reduce lines of code.
^ This, I would count as a valid reduction of coding to try and reduce it to the essentials. It's not just an exercise in seeing how much one can cram on a line, to artifically keep line count low.