Extended the binary operators.
This commit is contained in:
parent
65afcb20a3
commit
c89a00fd51
2 changed files with 16 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue