Previous Topic: getValuesFromValueMapArray()Next Topic: include


hasField

The hasField function determines if a field exists in a ValueMap.

Syntax

bHasField = hasField(valuemap, fieldName)

Arguments

valuemap (ValueMap)

Specifies the input ValueMap.

fieldName (String)

Specifies the field name.

Return Value

bHasField (Boolean)

Returns true if the field exists in the ValueMap or false otherwise.

Example

bHasField = hasField(Process.vmBooks, "author");