You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
418 B
PowerShell
25 lines
418 B
PowerShell
10 years ago
|
# This is a simple comment
|
||
|
function Hello($name) {
|
||
|
Write-host "Hello $name"
|
||
|
}
|
||
|
|
||
|
function add($left, $right=4) {
|
||
|
if ($right -ne 4) {
|
||
|
return $left
|
||
|
} elseif ($left -eq $null -and $right -eq 2) {
|
||
|
return 3
|
||
|
} else {
|
||
|
return 2
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$number = 1 + 2;
|
||
|
$number += 3
|
||
|
|
||
|
Write-Host Hello -name "World"
|
||
|
|
||
|
$an_array = @(1, 2, 3)
|
||
|
$a_hash = @{"something" = "something else"}
|
||
|
|
||
|
& notepad .\readme.md
|