It's not much, but it is an improvement, IMHO.if($. != 1){ # we're not on the first page # "make 'previous' link" code if ($. != $total_number_of_lines){ # we're not on the first or last page # add neat little " | " to separate # my 'next' and 'last' links } } if ($. != $total_number_of_lines){ # we're not on the last page # "make 'next' link" code }
In reply to Re: Testing for one of three conditions
by matija
in thread Testing for one of three conditions
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |