Skip to content

Instantly share code, notes, and snippets.

@MattHodge
Created August 16, 2015 11:51
Show Gist options
  • Save MattHodge/7a5b2b205f3895a7949b to your computer and use it in GitHub Desktop.
Save MattHodge/7a5b2b205f3895a7949b to your computer and use it in GitHub Desktop.
Description for 03_Blog_PSStringFormating_HashTables.ps1
# Create a hash table for the item and use double quotes
$myItem = @{
type = 'Beer'
price = '$6.00'
}
$myString = "The price of a $myItem.type is $myItem.price"
Write-Output $myString
@MattHodge
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment