NAME
RegistryExists — Check whether a registry key or value exists.
SYNOPSIS
RegistryExists KeyName ?ValueName?
DESCRIPTION
Return Value
1 Key/value does exist.
0 Key/value does not exist.
Arguments
KeyNameRegistry key path.
ValueNameOptional. Name of value to look for. Leave this out if you are looking for a key, rather than a value.

For information regarding exceptions / errors, see here.
EXAMPLES
% registry set {HKEY_CURRENT_USER\Software\My} testy 123
% RegistryExists {HKEY_CURRENT_USER\Software\My} testy
1
% registry delete {HKEY_CURRENT_USER\Software\My} testy 123
% RegistryExists {HKEY_CURRENT_USER\Software\My} testy
0
SEE ALSO
registry
KEYWORDS
check, registry, validation, verification