if( $a < $b ) { ## Do what is required when $a is the lessor } else { ## Do what is required when $b is the lessor }