sub true1 { print "true1\n"; 1; } sub true2 { print "true2\n"; 1; } sub false1 { print "false1\n"; 0; } sub false2 { print "false2\n"; 0; } if ( true1() && true2() ) { print "all true\n"; } if ( false1() || false2() ) { print "somethings wrong with the universe!\n"; } # Not tested but should output: true1 true2 all true false1 false2
In reply to Re: In what order is a compound IF evaluated?
by runrig
in thread In what order is a compound IF evaluated?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |