---
schema_version: "1"
id: 95412261011a63375b22bd4b0f74afd330221d3cabd2848ef1db7d726eb78eae
title: IsPhoneNumber
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_utilitiesIsPhoneNumber.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_utilitiesIsPhoneNumber.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 65bde8635ac9c1fb3a424cee8e9e698301f3c0e8840ccd6fe154d5d0e6d27b7f
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# IsPhoneNumber

## Overview

Evaluates a passed string to determine if it contains a valid phone number. The function returns either a true or false value.

### Syntax

IsPhoneNumber(1)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description        |
| ------- | ------ | ------------ | ------------------ |
| **1**   | string | **Required** | String to evaluate |

## Example

In this sample code, the function evaluates the string to determine if it contains a valid phone number.

```
IsPhoneNumber("5555551212");
```
