WEBVTT

00:08.660 --> 00:16.240
The logical operators windows partial support for logical operators which are used to combine tests

00:16.560 --> 00:24.010
you then their comparison operator is describing the Presidium lesson and they are described in the

00:24.010 --> 00:25.420
Folarin table.

00:25.420 --> 00:35.950
We have an operator minyon is true if both comparisons are true and on the down or operator Newnan is

00:35.950 --> 00:36.540
true.

00:36.700 --> 00:46.780
If one of or both comparison's is true not operator meaning negation and exclamation mark mean a negation

00:47.050 --> 00:49.880
synonym for NOT operator.

00:49.900 --> 00:57.850
Now you can see some simple very basic examples with looser operators to test whether three is greater

00:57.850 --> 01:03.070
than four times the amount three greater then operator four.

01:03.190 --> 01:10.330
Not surprisingly it returns false to test whether Fyffe is greater than or equal to three times the

01:10.440 --> 01:14.750
amount five greater than greater equals three.

01:14.770 --> 01:18.880
It returns true using that and logical operator.

01:18.880 --> 01:27.280
You can test whether both comparisons are true with the following command three greater than four and

01:27.490 --> 01:29.770
five greater than three.

01:29.800 --> 01:37.870
This returns false since the first test returns false because it is then impossible for both comparisons

01:37.870 --> 01:38.890
to be true.

01:39.040 --> 01:42.390
And you know that overall test is false.

01:42.400 --> 01:52.440
However if you use or logical operator three greater than four or five greater or equal three.

01:52.480 --> 02:00.970
The first test returns false and the right test returns true since only one part of the test needs to

02:00.970 --> 02:04.520
be true for the overall test to succeed.

02:04.540 --> 02:13.150
When you use the OR operator the overall test returns true to view the help file about the logical operator.

02:13.300 --> 02:21.250
Type the following command to the prompt felt about underscore logical underscore operator and some

02:21.250 --> 02:28.720
Vorse about the unit replicators windows powar shell supports the Unirea paraders which you can see

02:28.720 --> 02:29.710
on the screen.

02:29.830 --> 02:39.880
Plus the operator meaning signifies explicitly that a number is a positive number minus signifies that

02:39.880 --> 02:44.290
a number is a negative number plus plus increments.

02:44.410 --> 02:53.830
Well you or wearable and minus minus decrements Well your or variable the decremental and incremental

02:53.850 --> 03:00.240
operators work similarly to the equivalent operators in many other languages.

03:00.280 --> 03:11.020
So to assign a 5 to variable A then incremented type the command variable A equals five variable A plus

03:11.020 --> 03:15.220
plus the value of variable is now 6.

03:15.220 --> 03:22.600
Another example to Sandtown to a variable b and then decremented type these commands.

03:22.630 --> 03:31.370
Variable b equals term variable B minus minus the value or a variable B is now 9.

03:31.540 --> 03:38.320
In some circles you need to be careful whether the incremental decrement operator has come before or

03:38.410 --> 03:40.530
after a variable name.

03:40.550 --> 03:45.280
Saturable a term used in the following command variable a.

03:45.310 --> 03:48.160
Equal Stalham type the following command.

03:48.160 --> 03:58.190
Variable b equals variable A plus plus that assigns the value over variable aid to a variable B.

03:58.330 --> 04:01.980
And after that assignment has taken place.

04:02.020 --> 04:11.350
It is an incremental variable Ed and now the value of variable B is 10 and the value of variable A is

04:11.350 --> 04:12.130
11.

04:12.130 --> 04:18.380
However if you assign the value town to a variable A then type the following command.

04:18.430 --> 04:30.220
See variable C equals plus plus variable a variable A is incremented before the assignment so variable

04:30.280 --> 04:33.880
8 is 11 when Simon takes place.

04:33.910 --> 04:39.940
Therefore the value of both verbal A and variable c is 11.
