---
title: "pageExists"
canonical: "https://support.appfire.com/space/PSCONF/15302981/pageExists"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | pageExists(pageId) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Verifies whether a given page is a registered Confluence page.

Verifies whether a given page is a registered Confluence page.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | page ID | Number | Yes | ID of the selected page. |

## Return Type

**Boolean (true/false)**

## Example

```javascript
boolean exists = pageExists(11801);
print("Return " + exists);
```

Print Return true

## See also

> Macro (contentbylabel)