Many² ways you can set a variable value

by Apr 3, 2009

There are many ways to set a variable's value.
I just learnt one more yesterday. If you have others, please add comments
# Simple # $ gets the variable, and = will assign it $a = 1
# With Variable Scope # The prepend is the scope, and could be global, script, and others # Useful when you want to keep things in script scope, or share them out in global scope $global:a = 1
# Complex variable… Read the full text.