WEBVTT

00:00.360 --> 00:08.510
Compare strings it's very easy to compare strings using IF statements.

00:08.510 --> 00:11.700
First have brackets.

00:12.500 --> 00:19.880
Within two years string variable such as name on a signing with a string such as I thought or whatever

00:19.890 --> 00:27.630
you want to then create another string variable such as name to honest signing with a string also such

00:27.630 --> 00:35.780
a C++.

00:36.110 --> 00:44.810
Now let's use a statement with these two strings to see if they are equal or not by typing if Name one

00:45.290 --> 00:49.910
equal equal name to call an interesting sentence.

00:50.030 --> 00:51.910
Two strings are equal.

00:52.010 --> 00:58.870
Else call in print two strings are not equal.

01:02.210 --> 01:20.790
After that try them on termino.

01:25.180 --> 01:26.100
Very good.

01:26.140 --> 01:28.750
It shows the two strings are not equal.

01:28.750 --> 01:35.570
Now let's change the string of two and make it same as the string of name one.

01:35.680 --> 01:36.950
Then try on terminal

01:44.120 --> 01:45.910
sweet as you can see here.

01:45.910 --> 01:50.280
The comparison works well and shows that two strings are equal.

01:50.290 --> 01:51.350
That's it for now.

01:51.430 --> 01:52.540
Thank you very much guys.
