Last active
November 8, 2015 13:05
-
-
Save MattHodge/4eaf9fd4d38fc556956e to your computer and use it in GitHub Desktop.
Description for 04_Blog_PSStringFormating_HashTables_DoubleQuotes.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From Blog Post: https://www.hodgkins.net.au/powershell/the-ultimate-guide-to-powershell-string-formatting/