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

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | admSpaceExists(spaceKey) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns 'true' if space with provided key exists and 'false' otherwise.

Returns 'true' if space with provided key exists and 'false' otherwise.

## Return Type

**Boolean (true/false)**

## Example

### Example 1

```javascript
return admSpaceExists("TST");
```

Returns "true" if the test (TST) space exists. Otherwise, "false".

## See also

> Macro (contentbylabel)