if ($currentIndex >= $readLineFrom and $currentIndex <= $readLineTo){