Scripting >> Examples >> Python-Perl-Powershell-Bash-Windows Batch >> Example 008 - Working with comparison operators for numeric values


Working with comparison operators


Examples in Python, Perl, Powershell, Bash and Windows batch.
 

 

 

 

 

 

 

 

 

 

 

 

 

## NOTE
## For Windows Batch
##   1. There is no logical AND or logical OR operator, so cannot directly create a compound comparison
##
##

 

Sample output - Python

 

Sample output - Perl

 

 

 

Sample output - Powershell

 

 

Sample output - Bash

 

Sample output - Windows Batch