Contact PSVM   (Q & A)  |  Notes Below   Audio  |  [toc]   [prev] Slide 6 of 13 [next]
SIJLesson13 Slide06
1, 2, 3, 4, 5, [6 (top)], 7, 8, 9, 10, 11, 12, 13, [Lab]

Notes for Slide 06
Similar to
the is-less-then-operator: < :and
the is-greater-than-operator: > :,
the is-less-than-or-equal-to-operator: <= :and
the is-greater-than-or-equal-to-operator: >= :are
used for greatness checking.
As you might have guessed, these new operators will
also return true if the two numbers being compared
are equal.
The example if-blocks produce the same results, showing
that the is-less-than-or-equal-to-operator is the same as not
of the is-greater-than-operator (that is, the else-part of
an if condition using the is-greater-than-operator).
The examples in the slide might be easier to understand
than reading the notes for this slide, perhaps because the
names of the operators are so long.
To help explain, here are ways in which the two if-statements
could be read out loud,
"if num is less than or equal to lowest ..."
and
"if num is greater than lowest, do nothing, otherwise ..."


1, 2, 3, 4, 5, [6 (top)], 7, 8, 9, 10, 11, 12, 13, [Lab]