You're right, of course. The reason I avoided the former approach was because I have a lot of similar statements and I was hoping to keep the assignments in the scope of the conditional so as not to pollute the namespace or by accident reuse an old variable.
In reply to Re^2: logical non-short-circuit operators
by december
in thread logical non-short-circuit operators
by december
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |