Well, I added
Code:
If $printerport = "IP_192.168.222.1"
? "IP Port Exists"
Else
? "IP Port Does not Exist"
EndIf


and removed the other If/EndIf statements.
The output on the screen is:
Code:
Printer PortName:            IP_192.168.222.1
IP Port Exists



Edited by Witto (2006-03-28 08:26 AM)