mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
add list syntax example in for powershell
This commit is contained in:
parent
76e5f436df
commit
d7cd776eee
@ -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'}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user