add list syntax example in for powershell

This commit is contained in:
Renze Yu 2018-11-08 10:48:33 +08:00 committed by GitHub
parent 76e5f436df
commit d7cd776eee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,7 @@ $aString="Some string"
# Or like this:
$aNumber = 5 -as [double]
$aList = 1,2,3,4,5
$anEmptyList = @()
$aString = $aList -join '--' # yes, -split exists also
$aHashtable = @{name1='val1'; name2='val2'}