http://qs321.pair.com?node_id=935613


in reply to Re^2: logical non-short-circuit operators
in thread logical non-short-circuit operators

If you have many similar statements, maybe you could refactor them to use a table for the conditions and a loop (or so), or in some other way. Code duplication or near-duplication is usually a sign that you can do it better somehow.

If you want to avoid the variables leaking out, you can just put another block around the whole thing (variable declarations and if block).