There is a range of operators that Windows Shell supports the behavior and Centrex of many operators
is likely to be familiar to you.
Anti-grav mentioned some of them early in this course.
So when those social support the following types of operators Arithmetike to be used to calculate well
use assignment to be used to assign one or more failures to wearable and comparison to be used to compare
Well years outperform conditional tests.
There are also logical operators which are used in statements contained in more than one conditional
test to specify how those tests are to be applied.
Uner operators which are use to grow downtown Daker command variables or object properties and special
operators which are used to for example run commands or specify a well used data type.
So let's take a closer look at each of the operators and see how you can use them.
Windows powar shell supports Manat arithmetic operators that are likely familiar to you from other languages
or from my previous lessons.
So the supported operator Sarr addition subtraction multiplication division and remainder.
You can try very simple examples here.
Each of the five arithmetic operators in this list and you'll get the result of each calculation displayed
on the screen immediately like you could type three plus three if divided by five.
Two multiplied by seven eighteen divided by three.
And so on.
You can of course use arithmetic operators to manipulate numeric well.
Hell test wearables the following example shows Dushan of two variables type this command.
The output shows the results define a Y and causes the value of total wearable to be displayed on the
console to view the help file about arithmetic operators tab the following command to the prompt help
about underscore sematic underscore operator some words about operator precedence.
When you to know arithmetic operators windows powar shell evaluates expressions based on the following
an order of precedence.
Forest marmots indicating a negative number.
Second multiplication division and remainder.
And this sort plus and minus indicate an obstruction for example 6 plus four divided by two is the same
as six splice in brackets four divided by two.
Since the division operator has a higher precedence and is evaluated first.
Here are some simple examples that demonstrate some of the operator precedence just list.
Notice there's this first example is equal to the second one since the division operator has greater
precedence than the addition of operator to view the help file about operator precedence.
Type the following command to the prompt help about underscore arithmetic underscore operators.