in reply to Multiple numeric not or compare in if statement
if (($a != 3) || ($a != 77) || ($a != 8))
Try instead:
Cheers,
Rob
Try instead:
if (($a != 3) && ($a != 77) && ($a != 8))
Cheers,
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Multiple numeric not or compare in if statement
by perlfan (Vicar) on Jul 02, 2020 at 05:32 UTC | |
by haukex (Archbishop) on Jul 02, 2020 at 07:44 UTC | |
by perlfan (Vicar) on Jul 02, 2020 at 13:27 UTC | |
by BillKSmith (Monsignor) on Jul 02, 2020 at 15:33 UTC |
In Section
Seekers of Perl Wisdom