All language subtitles for 128 Combining Comparators.en_US

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

Now in the last lesson we looked at how we can use comparatives, such as greater than or is equal to, in

order to send a different alert to people who got love scores above 70 and those who got below 70.

Now, what if we could find tune that even further? What if we could say, if somebody got above 30 but

below 70, then they should get a different alert from the other scores?

Well to do this we would have to combine our comparatives. And the three basic comparatives are two ampersands

for

AND, so whether if condition one is true and condition two is true. You can check to see if either

condition one is true or condition two is true

by using the

OR command,

and you can do this using two pipe signs, and that's the straight lines that you see on your keyboard.

And finally, as we've seen already, the exclamation mark means NOT, or the opposite of something.

So let's take a look at this in practice.

So, in between the if and else, let's say we added another if statement and we said, if the love score

was greater than 30,

so this is condition one, and we combine it using the AND, which are two ampersand symbols on the keyboard,

and the second condition is love score is less than or equal to 70.

So under this condition we can give people the alert of their love score. If the love score was greater

than 70,

we tell them that they love each other like Kanye and Kanye, and if they got a really low score, if love

score was less than or equal to 30, then we tell them that your love score is this and we give them

a different message,

for example. So now when we run our code, depending on what we got as a random number, then it will

execute different parts of our code.

So say if we got above 70 then we get the Kanye loves Kanye.

If we got between 30 and 70 then we just get the simple love score, and if we get below 30, then we get

told that you go together like oil and water.

So this is achieved by using a bunch of if statements that check whether if different conditions are

true at the time when we run the code and then we use comparatives to compare the value of a particular

variable against another variable or another value.

And finally we used combo moves like the AND in order to check whether if two different conditions

are both true at the time of checking.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.