Not sure if the UBB discombobulated your code, so I will give you an example within [CODE] tags

code:
if substr(@ipaddress0,1,8)=" 10. 65."
;do something
endif

Rather than multiple IF - ENDIF statements, since only one can be true, better to do a SELECT CASE.

Have you had a look at the UDFs I mentioned? Search the UDF section for the words "is in subnet" if you haven't.

I assume you are using KiX 4.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.