Skip to content

Add Set-Variable vs. $foo = "bar" best practice  #144

Open
@tscholze

Description

@tscholze

Hi,

I'm a beginner and a little bit confused in which cases I should use the following syntax:

Set-Variable -Name "desc" -Value "A description"

and ich which cases it is ok do to the simpler

$desc = "A description"

I could not find any helpful information in the internet, maybe someone has a link for me? :)__

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions