---
title: "Continue(): function in Authoring, TypeShade API reference"
description: "Continue, a function in Authoring. Push a continue; onto the innermost scope, skipping to the next iteration of the nearest enclosing loop."
url: https://typeshade.dev/api/continue/
language: en
---

# `Continue()`

Function in Authoring

Push a continue; onto the innermost scope, skipping to the next iteration of the nearest enclosing loop.

`import { Continue } from 'typeshade/core/ir'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
const Continue: () => void
```

## Return value

`void`

## Description

An `If` or `Switch` body nested inside a `Loop` is not itself a loop boundary, so `Continue()` written inside a guard in a loop still targets that loop.

## Examples

### Example

```ts
If(outsideRange(arcOnSeg, halfS.mul(-2), segLen.add(halfS.mul(2))), () => Continue())
```

## See also

- [`Loop`](https://typeshade.dev/api/loop/)

## Source

[`src/core/ir/builder.ts`, line 1458](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/builder.ts#L1458), at commit af54ddad5
