Perl uses standard if/elsif/else statements for conditionals
Examples
Perl as with many other languages uses the && to signify an and. Also || is used to signal an or. In the following both COND1 and COND2 must be true for the code in the if statement to be executed.
The following statement only one of COND1 and COND2 must be true for the code to be executed.
Conditions may be nested with parenthesis similar to algebraic expressions. Here EITHER COND1 or COND2 must be true and COND3 must be true for the code to be executed.