Endif after each IF statement

$rc=addprinterconnection("\\SRIM6122\PRIM1551") If @error<>0 addprinterconnection("\\SRIM6109\PRIM1551") ENDIF

$rc=addprinterconnection("\\SRIM6109\PRIM1550") If @error<>0 addprinterconnection("\\SRIM6122\PRIM1550") ENDIF

etc..
_________________________
How to ask questions the smart way <-----------> Before you ask