LOL... LordShryku's succintness is brilliant...
barrin, just be sure to pay attention to your parenthesis (), because this:
IF(($page-1) > 10 || ($page-1) < 20 || ($page-1) == 15){
Is not the same as this:
IF((($page-1) > 10 || ($page-1) <20) || ($page-1) == 15){
This first example asks if the value is > 10, or <20 or =15 and the second one asks if the (value is > 10 or <20) OR if the value = 15.