Quantcast
Channel: PowerShell string interpolation syntax - Stack Overflow
Viewing all articles
Browse latest Browse all 4

PowerShell string interpolation syntax

$
0
0

I always used the following syntax to be sure that variable were expanded in a string:

"my string with a $($variable)"

I recently ran into the following syntax:

"my string with a ${variable}"

Are they equivalent? Any difference?


Viewing all articles
Browse latest Browse all 4

Trending Articles