Why not this:
code:
$x=0
WHILE $x<=12 AND NOT (decIP=>ipmin[x] AND decIP<ipmax[x])
$x=$x+1
' do stuff
LOOP

Okay, it doesn't use a FOR loop but it's elegant [Wink]

[ 03 April 2002, 01:00: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.