CNContact.HasValue
------------------

Checks whether a value is available in the loaded contact.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Contacts](component_Contacts.md) | [12.1](newinversion121.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "CNContact.HasValue"; ContactIdentifier; Selector ) 

**MBS**( **"CNContact.HasValue";** /\* Checks whether a value is available in the loaded contact. \*/  
**$ContactIdentifier**; /\* The contact identifier.e.g. "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" \*/   
**$Selector**) /\* Which value to check.e.g. "nickname" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ContactIdentifier | The contact identifier. | "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" |
| Selector | Which value to check. | "nickname" |

### Result

Returns 1, 0 or error.

### Description

Checks whether a value is available in the loaded contact.  
Contacts can be partially loaded.  
Returns 1 if value is loaded and thus available or 0 if not.  
  
Use [CNContactStore.FetchContact](CNContactStoreFetchContact.md) to reload a contact.  
### See also

- [CNContact.SetValue](CNContactSetValue.md)
- [CNContact.Value](CNContactValue.md)
- [CNContactStore.FetchContact](CNContactStoreFetchContact.md)

### Release notes

- **Version 12.1**
    - Added [CNContact.HasValue](https://www.mbsplugins.eu/CNContactHasValue.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 12.1](https://www.mbsplugins.de/archive/2022-03-22/New_in_MBS_FileMaker_Plugin_12/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.1pr3](https://www.mbsplugins.de/archive/2022-02-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st February 2022 , last changed 14th February 2022

  
[CNContact.EditInAddressbook](CNContactEditInAddressbook.md) - [CNContact.IsUnifiedWithContact](CNContactIsUnifiedWithContact.md)

[HTML Version](CNContactHasValue.shtml)