Extended the binary operators.

This commit is contained in:
John Kane 2011-09-30 01:00:15 +01:00
commit c89a00fd51
2 changed files with 16 additions and 4 deletions

View file

@ -6,7 +6,7 @@ function Hello($name) {
function add($left, $right=4) {
if ($right -ne 4) {
return $left
} elseif ($left -eq $right) {
} elseif ($left -eq $null -and $right -eq 2) {
return 3
} else {
return 2