Previous Topic: trueNext Topic: VERY_DETAILED


ValueExists

ValueExists

Verifies that a registry key value exists in the registry or INI file. This command can take two or three parameters. The first parameter is the registry key path and the second parameter is the value name. The first two parameters are required and are string values. The third parameter indicates whether to look on the source computer or destination computer. The third parameter is optional and a Boolean value. If the third parameter is True, the interpreter looks on the source computer for the specified key. If the parameter is False or it is omitted, the interpreter looks on the destination computer.

Note: The third Boolean parameter can only be used during General and Apply functions. If used otherwise, the third Boolean parameter causes a syntax or runtime error.

First parameter:

The Key path (string value)

Second parameter:

The Value name (sting value)

Third parameter:

The system (Boolean value)

Usage:
ValueExists( <Key path>, <Value name>, [Boolean] );
Example:
if (ValueExists( "HKCU\\Control Panel\\Desktop", "Smooth Scrolling", SOURCE))
   ApplyValue( "HKCU\\Control Panel\\Desktop", "Smooth Scrolling");