Understanding Equals - Single, Double, or Triple Equals?

preview_player
Показать описание
This tutorial will teach you the difference between single, double, and triple equals, for beginners.

In a nutshell:
Single-equals (=) are used to define values.
Double-equals (==), used without a space in the middle, are used to compare two values in a conditional statement (if)
Triple-equals (===), still no spaces, are used to compare two values with TYPE in mind. So a string containing just "5" will not equal an integer of just 5, whereas a double-equals would return they would.

If you have any questions, please post them below. Also, if you have any suggestions for future tutorials, please post those as well!
Рекомендации по теме
Комментарии
Автор

Very useful and fast! Thank you. Btw, I thumbed up the vid :)

fusseldieb