in reply to Re^2: Complex conditional statements
in thread Complex conditional statements
To be honest, I think the better way to do it really is to not use those keywords (at least, not as statement modifiers), and not to keep the code compact. Whitespace is your friend. Especially after six months.
I don't know if you noticed it, but most of the people who have given analysis of your "complex conditional statement" (to use the term you used in the subject line) have added newlines and other whitespace just so they could wrap their heads around what was going on, and to help explain the logic that they were assuming you meant. This is a good indicator that your code, if you want it easy to read, decipher, and analyse later, should do similarly: add newlines and whitespace. Exactly the opposite of compact.
As long as you're spreading it out a bit, you probably should also use the if/unless keywords in their non-modifier form. This just makes things so much easier to understand. Remember - we're not writing code for the computer, but for the human reader. ;-)
|
|---|