Search This Blog

PowerShell: single quote vs. double quote

  • Single quotes:
    $i = 5
    'The value of $i is $i.'
    
    Output:
    The value of $i is $i.
    
  • Double quotes:
    $i = 5
    "The value of $i is $i."
    
    Output:
    The value of 5 is 5.
    

No comments:

Post a Comment