if ($macf == 0) { if ($syman == 0) { if($mac eq $oldMac) if ($sym eq $oldSym) { print "no changes\n"; } else { print "SEction E updated\n"; } } elsif ($sym ne $oldSym) { print "section C UPDATE\n"; } else { print "section B UPDATE\n"; } } elsif ($mac ne $oldMac) { print "MacSEction updated\n"; } else { print "no changes to mac\n"; } } elsif ($syman == 0) { if ($sym ne $oldSym) { print "syman update\n"; } else { print "no changes to syman\n"; } }
In reply to Re: Shorten function conditions
by Roy Johnson
in thread Shorten function conditions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |