I've just gone over my script and I've just realised why its probably been working fine for most machines as I have my ip details first trying to be collected by using EnumIPinfo() failing that it trys to use the UDF.

All of the machines I tested my script on only have one nic, appart from the two which it seems to be now failing on.

Anyway I'm still getting an error using this UDF it says on
line 14 (of the UDF)

ERROR: expected ')'!


I thought maybe it could be how i'm calling the udf hears my code
Code:
  
; Getting IP Address Info
$IPaddr = EnumIPinfo(0,0)
if $IPaddr = "0.0.0.0" or $IPaddr = ""
$IPinfo = GetIPinfo()
$IPaddr = $IPinfo[0]
$SNmask = $IPinfo[1]
$Gateway = $IPinfo[2]
else
$SNmask = EnumIPinfo(0,1)
$Gateway = EnumIPinfo(0,3)
endif



any ideas? From my limited kix knowledge the syntax looks right?
Thanks,
Quenten