LogOp
On this page

LogOp

Type in IR

The operator tag on Expr.logical: the short-circuiting boolean operators && and ||.

import type { LogOp } from 'typeshade'
import type { LogOp } from 'typeshade/core/ir'

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

Syntax

type LogOp = '&&' | '||';

Description

The operator tag on Expr.logical: the short-circuiting boolean operators && and ||. Both operands and the result are bool. It is a separate Expr.op from binop because WGSL and GLSL give && and || short-circuit evaluation, which a plain binary operator does not have.

Source

src/core/ir/nodes/operators.ts, line 29, at commit af54ddad5

Edit this page Report a problem