okay guys i think i'm getting there, but could you have a look at this and tell me where i'm going wrong please, oh and dont worry about ice lads, i'll buy you a bottle of glenfiddich each for helping me out,

; DEFAULTPRINTER
; To retrieve local machines IP address and cross reference it against a set of defined subnets
;
; AUTHOR Anthony Alderson

CALL "binaryip.kix"
CALL "ipmask.kix"
CALL "isinsubnet.kix"
CALL "isiniprange.kix"

$ipaddress='@IPADDRESS0'
$iparray[0]='192.168. 12. 0/255.255.255. 0' ;ragworth

IF $ipaddress=$iparray[0]
? "you stink"
sleep 3
ELSE
? "guess you dont stink after all"
sleep 3
ENDIF