Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Functions [8/9]

Here is an improvement of the function IsBetween. It allows the values of parameters a and b to be given in the opposite order.

Commented out is an demonstration of an even shorter way to write this function. The parentheses were added only for clarity of expression; they can be removed because the operator and has greater priority than the operator or.

Loading...