yes that was my typo here is the full code corrected.. i basically is looking to do this in the simplist way . for it will only be active when i need to delet or remove a printer from end users machine

;********************************************************************************
;* subroutine to delete OLD printer
;**************************************************************************

if existkey("HKEY_CURRENT_USER\Printers\Connections\,,xxxxxxx,Cannon IR3300 (Copy Room East")=0
$temp=Delprinterconnection("\\xxxxxxx,IR3300 (Copy Room East)")
endif

if existkey("HKEY_CURRENT_USER\Printers\Connections\,,xxxxxxx,Cannon IR5050 (Copy Room East)") =0
$temp=Delprinterconnection("\\xxxxxxx,Cannon IR5050 (Copy Room East)")
endif

if existkey("HKEY_CURRENT_USER\Printers\Connections\,,xxxxxxx,HP 4Plus (IDF East)") =0
$temp=Delprinterconnection("\\xxxxxxx,HP 4Plus (IDF East)")
endif