@dangel, yes. You may think
"that variable will never be referenced if not condition
", however it has been shown time and again (personal experience, at least) that programmers are imperfect and logic flows can in fact be different than expectations.
This is especially true in spiral-development, where assumptions change and not all code is audited/refactored. It costs "almost nothing" to set the variable regardless of
condition
, even if only used when
condition
is met. —
r2evans 25 secs ago