mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-05 14:28:31 +00:00
Merge pull request #3389 from superyyrrzz/patch-1
[powershell/en] add list syntax example
This commit is contained in:
commit
be6f76529e
@ -68,6 +68,7 @@ $aString="Some string"
|
|||||||
# Or like this:
|
# Or like this:
|
||||||
$aNumber = 5 -as [double]
|
$aNumber = 5 -as [double]
|
||||||
$aList = 1,2,3,4,5
|
$aList = 1,2,3,4,5
|
||||||
|
$anEmptyList = @()
|
||||||
$aString = $aList -join '--' # yes, -split exists also
|
$aString = $aList -join '--' # yes, -split exists also
|
||||||
$aHashtable = @{name1='val1'; name2='val2'}
|
$aHashtable = @{name1='val1'; name2='val2'}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user