Windows powar shell supports several assignment operators which you can see here.
Lisa Parader is science a well-water wearable.
This one at the well-you of the right side of the assignment to the existing well-you of the left side
and a science result to the wearable on the left side.
The next one subtracts the ratio of the right side of the assignment from the existing well area of
the left side.
And as science the result to the wearable on the left side this one multiplies the wealth of the right
side of the assignment.
And they exist in well-you of the left side and assigns the result to the wearable on the left side.
The next one the whites of the left side of this argument into existence.
Of the right side and assigns the result to their wearable on the left side and the last one.
Do whites look well here of the left side of the assignment into existence.
Well you of the right side antiscience the remainder to the wearable on the left side.
The simplest assignment operator and the windows powerful language is that equal inside the command
variable A equals five assigns the numeric value five to the variable a to at three for example to the
variable A and assign the result to the variable a type the following command.
We're about a blas equals three.
It is equivalent to a variable A equals variable A plus three to substract four from variable a.
And to solve the resolved to variable a type list command variable A minus equals four.
It is a grueling to variable A equals variable A minus for to multiply variable A by 5 and to assign
the result to a variable a type the following command wearable a multiply equals five to Greenland to
variable A equals variable a multiplied by five to do Y.
We're about a by four and to assign the result to variable a type the following command variable a divide
equal four.
And to find the remainder from the word and we're about a by two and decide the remainder to variable
a type this command we're about 80 percent equal to.
Now let me run all these commands to see the output of the current value of the variable a.
And as you can see it is now equal to 1 ROUSSET an assignment operator are used with numerical values.
However you can also use assignment operators when appropriate with string.
Well use for example to sign the string.
Well hello to the variable must run type this command.
Wearable my screen equals hello in quotation marks when assigning a string.
Well use use warit quotation marks or pairt apostrophes to enclose list 3 and well so you can assign
multiple wealthiest to multiple variables in a single assignment statement the following statement.
Assign Suaram to variable a to to wearable B and 3 to variables C and when typed you'll see the resultant
well is displayed.
So if you type variable you'll see that it grows to 1 and so on the assignment operator can also be
used to assign multiple welders to a numeric array or string array.
We'll discuss it in more detail a bit later.
For example the following command variable my numeric array equal in one common to comma three and four
creates an array containing four elements each containing a numeric value.
Similarly the following command variable in my string array equals once twice thrice and more creates
an array with four elements each of which contains a string.
Well so now when you enter these variables you'll get this output that my numeric array variable contains
numeric values and my string array variable contains string values.
You can also use the assignment operator to sign Well you just turn a search for read the necessity
for free either a data structure for storing collections of keys and well use associative arrays are
discussed a bit later as well.
And again to use the help file about the assignment operator is just type the following command to prompt
help about underscore assignment underscore operator.