Think you might have to spell it out for us doc.

But not having run the script, have you really tested out this CASE & RETURN:

CASE InStr($IP, '132.36.')
$spServer='none'
$LogServer='APPSERVER1'
RETURN

The problem that I see is that your not returning an array to your mainline, and your mainline is expecting an array, and might syntax out, which would be bad ?

-Shawn