Open tscholze opened 4 years ago
In general, use variable assignment (your second case above). Set-Variable
is handy if the name of a variable is itself contained in a variable e.g. Set-Variable -Name $varname -Value 42
. Set-Variable
is also handy if you need to specify Option
, Visibility
or Scope
which is somewhat uncommon compared to variable assignment.
@rkeithhill thanks for you answer. :)
Hi,
I'm a beginner and a little bit confused in which cases I should use the following syntax:
and ich which cases it is ok do to the simpler
I could not find any helpful information in the internet, maybe someone has a link for me? :)__