Tuesday, November 28, 2006

Basic Stuff

Literal Strings
'text' indicate a literal string in PowerShell, while "text" is used when variables and escape chars are needed.
$c = "Julemanden"
Write-Host 'Santa Claus is called $c in Denmark'
Write-Host "Santa Claus is called $c in Denmark"

Multidimensional Arrays
$a = @( (1,2,3,4,5) , (6,7,8,9,0) )
$a[0][0]
$a[1][1]

No comments: