Probably a dumb question here, but is there something wrong with the below If statement?

Code:

$printserver="\\testserver"
$excl1="\\test01"
$excl2="\\test02"

$retcode=arrayenumkey('HKEY_CURRENT_USER\Printers\Connections\')
for each $printer in $retcode
$server=readvalue('HKEY_CURRENT_USER\Printers\Connections\' + $printer,"Server")
If $server <> $printserver Or $server <> $excl1 Or $server <> $excl2
? "test completed successfully"
Endif
Next



This part here isn't working. Even if $server = \\test01, it still goes through the If statement.
Code:
If $server <> $printserver Or $server <> $excl1 Or $server <> $excl2 



Edited by cyri (2005-09-22 01:36 AM)