Sure, and alternatively:

if(x++ == y) {...}

instead of

if $x = $y
...
endif
$x = $x+1

or

if $x = $y
$x = $x+1
...
endif

or

if $x = $y
$x = $x+1
...
endif
$x = $x+1
_________________________
-Jim

...the sort of general malaise that only the genius possess and the insane lament.