Continue
On this page

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'

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

Syntax

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

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

In the guide

See also

Source

src/core/ir/builder.ts, line 1735, at commit 26de7be8

Edit this page Report a problem