# blockOwnsSection()

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Function: blockOwnsSection()

> **blockOwnsSection**(`blockName`, `sectionIdOrAlias`): `boolean`

Defined in: [core/src/section-registry.ts:259](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/core/src/section-registry.ts#L259)

## Parameters

### blockName

`string`

### sectionIdOrAlias

`string`

## Returns

`boolean`