between method

bool between(
  1. int begin,
  2. int end
)

Implementation

bool between(int begin, int end) {
  return !connectionError && code! >= begin && code! <= end;
}