doc: sample: make the simple sample script actually simple
This commit is contained in:
@@ -1,22 +1,3 @@
|
|||||||
func test-function($name) {
|
$name = "Jonh"
|
||||||
if (5 -lt $var) {
|
|
||||||
echo good
|
|
||||||
} else {
|
|
||||||
echo bad
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "Hello, $name! $(2 + 4 + 2) wow"
|
echo "Hello, $name!"
|
||||||
}
|
|
||||||
|
|
||||||
# Example of instantiating an FX runtime object.
|
|
||||||
$obj = new-object -type-name fx.string -arguments "John Doe"
|
|
||||||
|
|
||||||
$hash = @{
|
|
||||||
1 = 'one'
|
|
||||||
2 = 'two'
|
|
||||||
'three' = 3
|
|
||||||
}
|
|
||||||
|
|
||||||
$hash2 = @{ 1 = 'one'; 2 = 'two'; 'three' = 3 }
|
|
||||||
|
|
||||||
test-function -name $obj
|
|
||||||
|
|||||||
Reference in New Issue
Block a user