So, what the ___ am I talking about?
Rather than having to join a string and a variable with duct tape:
$thing = "dog"
write-host "The cat was eaten by the "+$thing
> "The cat was eaten by the dog"
You can move the variable "inside" the string (within the matching quotes) and it works the same:
$thing = "dog"
write-host "The cat was eaten by the $thing"
> "The cat was eaten by the dog"
Ok, you can go back to sleep now.
No comments:
Post a Comment