$ReturnCode = function()

is either used to silence a function call(not printing to console),

or to get a value assigned which can be used later on !

It's either :

code:
if Existkey ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows 2000\SP2\Q282522")
? "Key does not exist"
else
? "Key exists..."
Endif

or

code:
if KeyExist("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows 2000\SP2\Q282522")
? "Key exists..."
else
? "Key does not exist"
Endif

J.

[ 09. December 2002, 11:20: Message edited by: jpols ]
_________________________