Conditions
This language cover a various number of operators returning boolean values
a < b
less thana <= b
less than or equal toa > b
greater thanéa >=
greater than or equal to ba == b
equal toa /= b
not equal to
Their use is pretty straight forward, you can get the boolean value and store it as a variable or use it in if statements
var value = 1 == 2;
// value == false
Condition can be combined thanks to this operator:
a && b
anda || b
or
var value = 1 == 2 || true == true;
// value == true
As we said earlier, they can be use in if statements, check out next page...