Added support for binary operators.

This commit is contained in:
John Kane 2011-09-30 00:41:45 +01:00
commit 65afcb20a3
2 changed files with 11 additions and 2 deletions

View file

@ -3,6 +3,16 @@ function Hello($name) {
Write-host "Hello $name"
}
function add($left, $right=4) {
if ($right -ne 4) {
return $left
} elseif ($left -eq $right) {
return 3
} else {
return 2
}
}
$number = 1 + 2;
$number += 3
@ -12,4 +22,3 @@ $an_array = @(1, 2, 3)
$a_hash = @{"something" = "something else"}
& notepad .\readme.md