Previous Topic: regIsKey--Check the Existence of a Registry Key (Function)Next Topic: regSetKeyValues--Set Registry Key Values From an Array (Function)


regIsVal--Check the Existence of a Registry Value (Function)

The regIsVal function checks if the specified registry value exists on the local or a remote system.

The function has the following syntax:

regIsVal(sKey, sValName)
sKey

Specifies the registry key.

sValName

Specifies the name of the value.

The function returns a Boolean indicating presence of sValName:

true

Indicates that the value exists.

false

Indicates that the value does not exist.

Examples

Verify HKLM\SOFTWARE\ACME for a value, 'home':

if(regIsVal("HKLM\\SOFTWARE\\ACME", "home"))
{
    ? "Value was found"
}
else
{
    ? "Value does not exist"
}

See also:

regGetVal--Get Registry Value (Function)

regIsKey--Check the Existence of a Registry Key (Function)

regSetVal--Set Registry Value (Function)